zxhxx 3 年之前
父節點
當前提交
de06e926f4
共有 1 個文件被更改,包括 11 次插入0 次删除
  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'));
     }