no message
This commit is contained in:
parent
cde30ab1f9
commit
b1439322ac
|
|
@ -19,10 +19,8 @@ import com.ruoyi.system.domain.NoticeRequest;
|
||||||
import com.ruoyi.system.domain.OppoCheck;
|
import com.ruoyi.system.domain.OppoCheck;
|
||||||
import com.ruoyi.system.service.IClewPhoneService;
|
import com.ruoyi.system.service.IClewPhoneService;
|
||||||
import com.ruoyi.web.core.config.GlobalLogHelper;
|
import com.ruoyi.web.core.config.GlobalLogHelper;
|
||||||
import io.swagger.models.Model;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import okhttp3.OkHttpClient;
|
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
|
@ -88,10 +86,14 @@ public class NoticeController {
|
||||||
@RequestParam("actionType")String actionType,
|
@RequestParam("actionType")String actionType,
|
||||||
@RequestParam("callBack")String callBack){
|
@RequestParam("callBack")String callBack){
|
||||||
log.info("归因转化回调内容,{},{},{},{},{},{},{}", aid, appId, oaid, idType, uniqueId, actionType, callBack);
|
log.info("归因转化回调内容,{},{},{},{},{},{},{}", aid, appId, oaid, idType, uniqueId, actionType, callBack);
|
||||||
|
String token= getToken();
|
||||||
|
if (StringUtils.isEmpty(token)){
|
||||||
|
token="eyJraWQiOiJ1MUFEcW95T21wT1ZHcXh6VzNnaWtPNER3UmJDZ2RNRCIsInR5cCI6IkpXVCIsImFsZyI6IkhTMjU2In0.eyJzdWIiOiIxMjczODgzNzQ1NTQ3NDkzODI0IiwiZG4iOjEsImNsaWVudF90eXBlIjoxLCJleHAiOjE3NDkyODE2MjUsImlhdCI6MTc0OTEwODgyNX0.FxqWkjbHgLav_q6sg8HWxTCMYl4_YkFf7MYSo6cFffk";
|
||||||
|
}
|
||||||
HuaweiRequest huaweiRequest=new HuaweiRequest();
|
HuaweiRequest huaweiRequest=new HuaweiRequest();
|
||||||
huaweiRequest.setActionType(actionType);
|
huaweiRequest.setActionType("4");
|
||||||
huaweiRequest.setActionTime(System.currentTimeMillis());
|
huaweiRequest.setActionTime(System.currentTimeMillis());
|
||||||
huaweiRequest.setDeviceIdType(idType);
|
huaweiRequest.setDeviceIdType("OAID");
|
||||||
huaweiRequest.setAppId(appId);
|
huaweiRequest.setAppId(appId);
|
||||||
huaweiRequest.setCallBack(callBack);
|
huaweiRequest.setCallBack(callBack);
|
||||||
huaweiRequest.setDeviceId(oaid);
|
huaweiRequest.setDeviceId(oaid);
|
||||||
|
|
@ -99,8 +101,8 @@ public class NoticeController {
|
||||||
Map<String, String> headerMap = new HashMap<>();
|
Map<String, String> headerMap = new HashMap<>();
|
||||||
headerMap.put("Content-Type", "application/json");
|
headerMap.put("Content-Type", "application/json");
|
||||||
headerMap.put("client_id", "1273883745547493824");
|
headerMap.put("client_id", "1273883745547493824");
|
||||||
headerMap.put("Authorization", "Bearer "+getToken());
|
headerMap.put("Authorization", "Bearer "+token);
|
||||||
log.info("请求https://connect-api.cloud.huawei.com/api/datasource/v1/track/activate的属性{}", JSONObject.toJSONString(huaweiRequest));
|
log.info("请求https://connect-api.cloud.huawei.com/api/datasource/v1/track/activate的属性{},headermap{}", JSONObject.toJSONString(huaweiRequest),headerMap);
|
||||||
String s = sendPost("https://connect-api.cloud.huawei.com/api/datasource/v1/track/activate", JSONObject.toJSONString(huaweiRequest), headerMap);
|
String s = sendPost("https://connect-api.cloud.huawei.com/api/datasource/v1/track/activate", JSONObject.toJSONString(huaweiRequest), headerMap);
|
||||||
log.info("请求https://connect-api.cloud.huawei.com/api/datasource/v1/track/activate的响应{}", s);
|
log.info("请求https://connect-api.cloud.huawei.com/api/datasource/v1/track/activate的响应{}", s);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue