소스 검색

添加接口

zhanwencai 1 년 전
부모
커밋
1581801689
2개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 3
      webServer/src/controller/ApiController.ts
  2. 0 2
      webServer/src/router/index.ts

+ 3 - 3
webServer/src/controller/ApiController.ts

@@ -431,9 +431,6 @@ const CallPayQuick = async (ctx) => {
     if (status == 1) {
         return
     }
-    let extrasArr = extrasParams.split(";")
-    let serverId = extrasArr[0] //区服id
-    let orgProductId = extrasArr[1]//商品id
 
     const orderInfo = (await Order.getOrder(orderId))[0]
 
@@ -443,6 +440,9 @@ const CallPayQuick = async (ctx) => {
         return ret
     }
 
+    let serverId = orderInfo.server_id//区服id
+    let orgProductId = orderInfo.product_id//商品id
+
     if (orderInfo.status == 2) {
         logger.info(`订单${orderId}已经重复发货`)
         ret.code = 1

+ 0 - 2
webServer/src/router/index.ts

@@ -26,8 +26,6 @@ router.post('/genCDK',ApiController.genCDK)
 
 router.post('/useCDK',ApiController.useCDK)
 
-router.post('/Valid',ApiController.Valid)
-
 router.post('/validCDK',ApiController.validCDK)
 
 //进去区服