记录来源

This commit is contained in:
kuang.yife 2023-10-18 23:32:21 +08:00
parent ae384e80ff
commit 801df735c0
2 changed files with 26 additions and 21 deletions

View File

@ -102,6 +102,7 @@ public class NoticeController {
CacheUtils.put(request.getPhone(), code); CacheUtils.put(request.getPhone(), code);
// 调用oppo的统计接口 // 调用oppo的统计接口
try { try {
if("oppo".equalsIgnoreCase(request.getFrom())){
// 回调 // 回调
OppoCheck model = new OppoCheck(); OppoCheck model = new OppoCheck();
model.setDataType(2); model.setDataType(2);
@ -121,6 +122,9 @@ public class NoticeController {
log.info("请求https://api.ads.heytapmobi.com/api/uploadActiveData的属性{}", JSONObject.toJSONString(model)); 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); 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); log.info("请求https://api.ads.heytapmobi.com/api/uploadActiveData的响应{}", s);
}else {
log.info("短信请求接口入参:{}", request);
}
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(); e.printStackTrace();
log.error("回调oppo报错:{}", e.getMessage()); log.error("回调oppo报错:{}", e.getMessage());
@ -134,6 +138,7 @@ public class NoticeController {
ClewPhone model = new ClewPhone(); ClewPhone model = new ClewPhone();
model.setPhone(request.getPhone()); model.setPhone(request.getPhone());
model.setCreateTime(new Date()); model.setCreateTime(new Date());
model.setRemark(request.getFrom());
clewPhoneService.insertClewPhone(model); clewPhoneService.insertClewPhone(model);
} }
}catch (Exception e){ }catch (Exception e){

View File

@ -40,7 +40,7 @@
<if test="createBy != null">create_by,</if> <if test="createBy != null">create_by,</if>
<if test="updateBy != null">update_by,</if> <if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if> <if test="remark != null">remark</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="phone != null">#{phone},</if> <if test="phone != null">#{phone},</if>
@ -48,7 +48,7 @@
<if test="createBy != null">#{createBy},</if> <if test="createBy != null">#{createBy},</if>
<if test="updateBy != null">#{updateBy},</if> <if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark}</if>
</trim> </trim>
</insert> </insert>
@ -61,7 +61,7 @@
<if test="createBy != null">create_by = #{createBy},</if> <if test="createBy != null">create_by = #{createBy},</if>
<if test="updateBy != null">update_by = #{updateBy},</if> <if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if> <if test="remark != null">remark = #{remark}</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>