Browse Source

autuor:dukun
describ: complete

ifengfei 5 năm trước cách đây
mục cha
commit
e76909c7ea

+ 5 - 5
deventor-cor/src/main/java/com/bluefire/deventorcor/util/CallBackUtil.java

@@ -56,11 +56,11 @@ public class CallBackUtil {
          */
         if (response.getStatusCode() == HttpStatus.OK) {
             JSONObject tmp = response.getBody();
-//            if(tmp.getInteger("status") == 1){
-//                log.info("卡密通知结果回调成功,发送信息为[{}],返回结果为[{}]", resultMap,tmp.toJSONString());
-//            }else{
-//                log.info("卡密通知结果回调shibai,发送信息为[{}],返回结果为[{}]", resultMap,tmp.toJSONString());
-//            }
+            if(tmp.getInteger("status") == 1){
+                log.info("卡密通知结果回调成功,发送信息为[{}],返回结果为[{}]", resultMap,tmp.toJSONString());
+            }else{
+                log.info("卡密通知结果回调shibai,发送信息为[{}],返回结果为[{}]", resultMap,tmp.toJSONString());
+            }
 
 
         }else {

+ 10 - 0
sql/unicom_card_secret.sql

@@ -0,0 +1,10 @@
+CREATE TABLE `unicom_card_secret` (
+  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `card_secret` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '卡密',
+  `face_price` double(6,2) NOT NULL DEFAULT '0.00' COMMENT '充值面额',
+  `status` int(11) NOT NULL DEFAULT '0' COMMENT '卡密状态:1、未使用;2、取走;3、已经使用',
+  `timestamp` bigint(20) NOT NULL DEFAULT '0' COMMENT '接收卡密时间',
+  `pay_timestamp` bigint(20) NOT NULL DEFAULT '0' COMMENT '卡密使用时间',
+  PRIMARY KEY (`id`),
+  UNIQUE KEY `card_secret` (`card_secret`)
+) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin