|
|
|
@@ -54,6 +54,13 @@ public class TtWebController extends BaseController { |
|
|
|
logger.info("抖音开放平台通知-----{}"+JSON.toJSONString(parameterMap)); |
|
|
|
Map resultMap = new HashMap<>(); |
|
|
|
String event = (String) parameterMap.get("event"); |
|
|
|
if("verify_webhook".equals(event)){ |
|
|
|
Map content = (HashMap) parameterMap.get("content"); |
|
|
|
String challenge = content.get("challenge").toString(); |
|
|
|
resultMap.put("challenge", challenge); |
|
|
|
return resultMap; |
|
|
|
} |
|
|
|
|
|
|
|
String client_key = (String) parameterMap.get("client_key"); |
|
|
|
WxAppinfo appInfo = wxAppinfoService.getByAppId(client_key); |
|
|
|
if(appInfo == null){ |
|
|
|
@@ -78,12 +85,7 @@ public class TtWebController extends BaseController { |
|
|
|
mailService.sendSimpleMail(receivers, "抖音开放平台通知", sb.toString()); |
|
|
|
|
|
|
|
|
|
|
|
if("verify_webhook".equals(event)){ |
|
|
|
Map content = (HashMap) parameterMap.get("content"); |
|
|
|
String challenge = content.get("challenge").toString(); |
|
|
|
resultMap.put("challenge", challenge); |
|
|
|
return resultMap; |
|
|
|
}else if("life_goods_audit".equals(event)){ |
|
|
|
if("life_goods_audit".equals(event)){ |
|
|
|
String content = (String) parameterMap.get("content"); |
|
|
|
JSONObject jsonObject = JSON.parseObject(content); |
|
|
|
String product_id = jsonObject.getString("product_id"); |
|
|
|
|