记录来源
This commit is contained in:
parent
ae384e80ff
commit
801df735c0
|
|
@ -102,6 +102,7 @@ public class NoticeController {
|
|||
CacheUtils.put(request.getPhone(), code);
|
||||
// 调用oppo的统计接口
|
||||
try {
|
||||
if("oppo".equalsIgnoreCase(request.getFrom())){
|
||||
// 回调
|
||||
OppoCheck model = new OppoCheck();
|
||||
model.setDataType(2);
|
||||
|
|
@ -121,6 +122,9 @@ public class NoticeController {
|
|||
log.info("请求https://api.ads.heytapmobi.com/api/uploadActiveData的属性{}", JSONObject.toJSONString(model));
|
||||
String s = HttpUtils.sendPost("https://api.ads.heytapmobi.com/api/uploadActiveData", JSONObject.toJSONString(model), headerMap);
|
||||
log.info("请求https://api.ads.heytapmobi.com/api/uploadActiveData的响应{}", s);
|
||||
}else {
|
||||
log.info("短信请求接口入参:{}", request);
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
log.error("回调oppo报错:{}", e.getMessage());
|
||||
|
|
@ -134,6 +138,7 @@ public class NoticeController {
|
|||
ClewPhone model = new ClewPhone();
|
||||
model.setPhone(request.getPhone());
|
||||
model.setCreateTime(new Date());
|
||||
model.setRemark(request.getFrom());
|
||||
clewPhoneService.insertClewPhone(model);
|
||||
}
|
||||
}catch (Exception e){
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
<if test="createBy != null">create_by,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="remark != null">remark</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="phone != null">#{phone},</if>
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="remark != null">#{remark}</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
|
@ -61,7 +61,7 @@
|
|||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="remark != null">remark = #{remark}</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
|
|
|||
Loading…
Reference in New Issue