dos 1 month ago
parent
commit
f0953d5eff

+ 6 - 1
game-business/src/main/java/com/game/business/controller/AppUsersCashrecordController.java

@@ -176,7 +176,7 @@ public class AppUsersCashrecordController extends BaseController
                 }
 //                Double amount = (appUsersCashrecord.getMoney().doubleValue() - appUsersCashrecord.getService().doubleValue()) * 100;
                 Double amount = (appUsersCashrecord.getMoney().doubleValue()) * 100;
-                String orderno = IdUtil.fastUUID();
+                String orderno = IdUtil.getSnowflakeNextIdStr();
                 logger.info("流水{},订单{} 发起提现",cashrecord.getOrderno(),orderno);
                 Map<String, Object> map = PayOrderUtils.getPayUrl(orderno,appChargeChannel.getChannelKey(),amount.intValue(),extra);
 //                String url = "";
@@ -282,4 +282,9 @@ public class AppUsersCashrecordController extends BaseController
             return "failed";
         }
     }
+
+    public static void main(String[] args) {
+        System.out.println(IdUtil.getSnowflakeNextIdStr().length());
+        System.out.println(IdUtil.fastUUID());
+    }
 }