|
|
|
@@ -78,14 +78,14 @@ public class TtWebController extends BaseController { |
|
|
|
mailService.sendSimpleMail(receivers, "抖音开放平台通知", sb.toString()); |
|
|
|
|
|
|
|
|
|
|
|
String content = (String) parameterMap.get("content"); |
|
|
|
JSONObject jsonObject = JSON.parseObject(content); |
|
|
|
if("verify_webhook".equals(event)){ |
|
|
|
String challenge = jsonObject.getString("challenge"); |
|
|
|
// String challenge = (String) content.get("challenge"); |
|
|
|
Map content = (Map) parameterMap.get("content"); |
|
|
|
String challenge = (String) content.get("challenge"); |
|
|
|
resultMap.put("challenge",challenge); |
|
|
|
return resultMap; |
|
|
|
}else if("life_goods_audit".equals(event)){ |
|
|
|
String content = (String) parameterMap.get("content"); |
|
|
|
JSONObject jsonObject = JSON.parseObject(content); |
|
|
|
String product_id = jsonObject.getString("product_id"); |
|
|
|
String reason = jsonObject.getString("reason"); |
|
|
|
String status = jsonObject.getString("status"); |
|
|
|
|