Browse Source

wesmiler 报恩寺项目

wesmiler 4 năm trước cách đây
mục cha
commit
f7d355afe4
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      app/Services/RechargeService.php

+ 3 - 0
app/Services/RechargeService.php

@@ -184,6 +184,9 @@ class RechargeService extends BaseService
 
         $money = isset($params['money'])? intval($params['money']) : 0;
         $num = intval($rate*$money);
+        if($money == 1){
+            $money = 0.01;
+        }
         // 创建订单
         $data = [
             'user_id' => $userId,