zxhxx vor 3 Jahren
Ursprung
Commit
de06e926f4
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
  1. 11 0
      app/api/controller/activity/WholeController.php

+ 11 - 0
app/api/controller/activity/WholeController.php

@@ -281,6 +281,17 @@ class WholeController
         foreach ($data as &$v)
         {
             $v['user'] = User::find($v['uid'])->toArray();
+            if($v['status'] == -1)
+            {
+                $v['title'] = '审核无效扣除';
+            }elseif($v['status'] == -2)
+            {
+                $v['title'] = '支付超时扣除';
+            }else
+            {
+                $v['title'] = '未确认,扣除收益';
+                $v['use_integral'] = bcmul($v['use_integral'],2,2);
+            }
         }
         return app('json')->successful(compact('sum','count','data'));
     }