|
@@ -19,6 +19,7 @@ import com.sqx.modules.message.dao.MessageInfoDao;
|
|
import com.sqx.modules.message.entity.MessageInfo;
|
|
import com.sqx.modules.message.entity.MessageInfo;
|
|
import com.sqx.modules.timedtask.service.RiderLocationService;
|
|
import com.sqx.modules.timedtask.service.RiderLocationService;
|
|
import com.sqx.modules.utils.MD5Util;
|
|
import com.sqx.modules.utils.MD5Util;
|
|
|
|
+import com.sqx.modules.utils.mock.MockAxnResponseUtil;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.apache.commons.codec.digest.DigestUtils;
|
|
import org.apache.commons.codec.digest.DigestUtils;
|
|
@@ -86,9 +87,12 @@ public class AppController {
|
|
calendar.add(Calendar.HOUR,1);
|
|
calendar.add(Calendar.HOUR,1);
|
|
updateSubscriptionRequest.setExpiration(DateUtils.format(calendar.getTime()));
|
|
updateSubscriptionRequest.setExpiration(DateUtils.format(calendar.getTime()));
|
|
updateSubscriptionRequest.setOperateType("updateExpire");
|
|
updateSubscriptionRequest.setOperateType("updateExpire");
|
|
- UpdateSubscriptionResponse updateSubscriptionResponse = client.updateSubscriptionWithOptions(updateSubscriptionRequest, runtime);
|
|
|
|
|
|
+ // FIXME: 2025/5/19 0019 START 临时不调用接口
|
|
|
|
+ /*UpdateSubscriptionResponse updateSubscriptionResponse = client.updateSubscriptionWithOptions(updateSubscriptionRequest, runtime);
|
|
UpdateSubscriptionResponseBody body = updateSubscriptionResponse.getBody();
|
|
UpdateSubscriptionResponseBody body = updateSubscriptionResponse.getBody();
|
|
- String code = body.getCode();
|
|
|
|
|
|
+ String code = body.getCode();*/
|
|
|
|
+ String code = "OK";
|
|
|
|
+ // FIXME: 2025/5/19 0019 END
|
|
if("OK".equals(code)){
|
|
if("OK".equals(code)){
|
|
return Result.success().put("data", messageInfo1.getContent());
|
|
return Result.success().put("data", messageInfo1.getContent());
|
|
}
|
|
}
|
|
@@ -110,7 +114,9 @@ public class AppController {
|
|
calendar.add(Calendar.HOUR, 1);
|
|
calendar.add(Calendar.HOUR, 1);
|
|
bindAxnRequest.setExpiration(DateUtils.format(calendar.getTime()));
|
|
bindAxnRequest.setExpiration(DateUtils.format(calendar.getTime()));
|
|
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
|
|
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
|
|
- BindAxnResponse bindAxnResponse = client.bindAxnWithOptions(bindAxnRequest, runtime);
|
|
|
|
|
|
+ // FIXME: 2025/5/15 0015 使用模拟数据
|
|
|
|
+// BindAxnResponse bindAxnResponse = client.bindAxnWithOptions(bindAxnRequest, runtime);
|
|
|
|
+ BindAxnResponse bindAxnResponse = MockAxnResponseUtil.mockBindAxnResponse();
|
|
BindAxnResponseBody body = bindAxnResponse.getBody();
|
|
BindAxnResponseBody body = bindAxnResponse.getBody();
|
|
String code = body.code;
|
|
String code = body.code;
|
|
if (!"OK".equals(code)) {
|
|
if (!"OK".equals(code)) {
|