|
|
@@ -382,7 +382,7 @@ public class TtOpenComponentServiceImpl implements TtOpenComponentService { |
|
|
|
@Override |
|
|
|
public List<WxOpenMaCodeTemplate> getTemplateList() throws WxErrorException { |
|
|
|
String uri = GET_TEMPLATE_LIST_URL + "?component_appid=" + getWxOpenConfigStorage().getComponentAppId(); |
|
|
|
String responseContent = get(GET_TEMPLATE_LIST_URL, "component_access_token"); |
|
|
|
String responseContent = get(uri, "component_access_token"); |
|
|
|
JsonObject response = JSON_PARSER.parse(StringUtils.defaultString(responseContent, "{}")).getAsJsonObject(); |
|
|
|
boolean hasTemplateList = response.has("template_list"); |
|
|
|
if (hasTemplateList) { |
|
|
|