Browse Source

爆币还要返回倍率

lizhen_gitee 1 năm trước cách đây
mục cha
commit
90c94952bf
1 tập tin đã thay đổi với 8 bổ sung3 xóa
  1. 8 3
      application/api/controller/Party.php

+ 8 - 3
application/api/controller/Party.php

@@ -1763,10 +1763,12 @@ class Party extends Common
                 Db::rollback();
                 $this->error('爆币失败');
             }elseif($res_baobi === true){
-                $returnData["baobi"] = 0;
+                $returnData['baobi_total'] = 0;
+                $returnData['baobi_beilv'] = 0;
             }else{
                 //爆币了
-                $returnData["baobi"] = $res_baobi;
+                $returnData['baobi_total'] = $res_baobi['baobi_total'];
+                $returnData['baobi_beilv'] = $res_baobi['baobi_beilv'];
             }
 
             // 获取用户魅力值
@@ -1926,7 +1928,10 @@ class Party extends Common
             }
 
             //返回爆币金额
-            return $baobi_total;
+            return [
+                'baobi_total' => $baobi_total,
+                'baobi_beilv' => $result['beilv'],
+            ];
         }
 
         //默认成功