Browse Source

我的门店

linwu 10 months ago
parent
commit
7110bf83fc
2 changed files with 4 additions and 0 deletions
  1. 4 0
      app/mainapp/controller/Broker.php
  2. BIN
      public/static/images/applet/broker/agent.png

+ 4 - 0
app/mainapp/controller/Broker.php

@@ -2,6 +2,7 @@
 
 namespace app\mainapp\controller;
 
+use app\common\model\AgentMarket;
 use app\common\model\BrokerIncome;
 use app\common\service\IncomeService;
 use app\mainapp\BaseController;
@@ -542,11 +543,14 @@ class Broker extends BaseController
         $user_ids     = UserModel::where('brokerid', $brokerid)->column('id');
         $worker_count = WorkerModel::where('userid', 'in', $user_ids)->where('status', 5)->count();
 
+        $agent = AgentModel::find($broker['agentid']);
+
         $statistics = [
             'income_total' => $broker['income_total'],
             'income'       => $broker['income'],
             'user'         => count($user_ids),
             'worker'       => $worker_count,
+            'agent'       => $agent,
         ];
 
         page_result(0, '', $statistics);

BIN
public/static/images/applet/broker/agent.png