fix(设备中心):获取IOT平台token接口优化
This commit is contained in:
+4
-4
@@ -10,16 +10,16 @@ import org.springframework.context.annotation.Configuration;
|
||||
@Getter
|
||||
public class WechatMpConfig {
|
||||
|
||||
@Value("${wechat.app-id}")
|
||||
@Value("${tencent.notification.app-id}")
|
||||
private String appId;
|
||||
|
||||
@Value("${wechat.app-secret}")
|
||||
@Value("${tencent.notification.app-secret}")
|
||||
private String appSecret;
|
||||
|
||||
@Value("${wechat.token}")
|
||||
@Value("${tencent.notification.token}")
|
||||
private String token;
|
||||
|
||||
@Value("${wechat.encoding-aes-key}")
|
||||
@Value("${tencent.notification.encoding-aes-key}")
|
||||
private String encodingAesKey;
|
||||
|
||||
}
|
||||
|
||||
+3
-1
@@ -182,6 +182,8 @@ public class OrderController {
|
||||
order.setUserId(user.getId());
|
||||
order.setTenantId(TenantContextHolder.getTenant());
|
||||
|
||||
Assert.notNull(order.getTourismId(),"TOURISM数据缺失");
|
||||
|
||||
//景区唯一二维码codeId,该二维码中包含价格信息
|
||||
if (order.getCodeId() == null){
|
||||
order.setCodeId("f83be3a9-2888-4000-8cf9-e6acdb3a22cd");
|
||||
@@ -189,7 +191,7 @@ public class OrderController {
|
||||
|
||||
List<Order> userOrderList = orderService.getOrderCountByStatusAndUser(user.getId(),OrderStatus.PAID.getId());
|
||||
if (!userOrderList.isEmpty()){
|
||||
return Result.failed("已存在支付订单,请刷新");
|
||||
return Result.succeed("已存在订单");
|
||||
}
|
||||
|
||||
QrCode qrCode = qrCodeService.getByCodeId(order.getCodeId());
|
||||
|
||||
+7
-5
@@ -159,11 +159,13 @@ public class OrderFileController {
|
||||
orderFile.setFileType(fileInfo.getContentType());
|
||||
orderFile.setTourismId(order.getTourismId());
|
||||
}
|
||||
orderFileService.save(orderFile);
|
||||
|
||||
// 机库上报订单素材,更新订单状态为素材上传中
|
||||
order.setOrderStatus(OrderStatus.UPLOADING.getId());
|
||||
orderService.updateOrder(order);
|
||||
if (orderFileService.save(orderFile)){
|
||||
// 机库上报订单素材,更新订单状态为素材上传中,如果订单为设备执行中则更新,否则说明状态已更新
|
||||
if (order.getOrderStatus().equals(OrderStatus.DOING.getId())){
|
||||
order.setOrderStatus(OrderStatus.UPLOADING.getId());
|
||||
orderService.updateOrder(order);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public interface OrderMapper extends SuperMapper<Order> {
|
||||
" orders,\n" +
|
||||
" (SELECT @rank := 0) r\n" +
|
||||
"WHERE \n" +
|
||||
" order_status in(1,4,) \n" +
|
||||
" order_status in(1,4,5,6) \n" +
|
||||
"ORDER BY \n" +
|
||||
" pay_time;")
|
||||
List<OrderRanking> getOrderRanking1();
|
||||
|
||||
@@ -44,6 +44,11 @@ tencent:
|
||||
getwxacodeUrl: https://api.weixin.qq.com/wxa/getwxacode?access_token=
|
||||
# 微信退款通知地址
|
||||
refund-notify-url: ${zlt.wxrefund.notifyUrl}
|
||||
notification:
|
||||
app-id:
|
||||
app-secret:
|
||||
token:
|
||||
encoding-aes-key:
|
||||
file:
|
||||
oss-url: goflyapp.oss-cn-beijing.aliyuncs.com
|
||||
cdn-url: cdn.goflytec.com
|
||||
|
||||
Reference in New Issue
Block a user