shish 4 years ago
parent
commit
ccd4475460
2 changed files with 5 additions and 5 deletions
  1. 2 1
      app-ghs/controllers/ApplyController.php
  2. 3 4
      biz-hd/saas/services/ApplyService.php

+ 2 - 1
app-ghs/controllers/ApplyController.php

@@ -61,6 +61,7 @@ class ApplyController extends BaseController
             $where['status'] = $status;
         }
         $data = ApplyService::getApplyList($where);
+        $data['balance'] = $this->shop->balance ?? 0;
         util::success($data);
     }
 
@@ -68,7 +69,7 @@ class ApplyController extends BaseController
     public function actionRegister()
     {
         //避免重复提交
-        util::checkRepeatCommit($this->adminId,30);
+        util::checkRepeatCommit($this->adminId, 30);
 
         $post = Yii::$app->request->post();
         $post['adminId'] = $this->adminId;

+ 3 - 4
biz-hd/saas/services/ApplyService.php

@@ -54,10 +54,9 @@ class ApplyService extends BaseService
             $list[$key]['fullAvatar'] = $avatar;
         }
         $data['list'] = $list;
-        $data['balance'] = 0.00;
-        $data['invitedNum'] = 10;
-        $data['payNum'] = 5;
-        $data['income'] = 100;
+        $data['invitedNum'] = 0;
+        $data['payNum'] = 0;
+        $data['income'] = 0;
         return $data;
     }