| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace business\controllers;
- use Yii;
- use common\components\util;
- class ConsoleController extends BaseController
- {
-
- //概况 shish 2019.12.19
- public function actionProfile()
- {
- $asset = $this->merchantAsset;
- $notice = [
- ['title' => '您还没有绑定公众号', 'action' => '立即绑定', 'url' => 'http://www.test.com'],
- ];
- $todayData = ['visit' => rand(9, 99), 'fans' => rand(9, 99), 'user' => rand(9, 99), 'income' => rand(11, 999), 'order' => rand(111, 999)];
- $incomeStat = [
- 'month' => 1999,
- 'week' => 999,
- 'list' => ['7.1' => 100, '7.2' => 200, '7.3' => 300, '7.4' => 400, '7.5' => 500],
- ];
- $visitStat = [
- 'month' => 1999,
- 'week' => 999,
- 'list' => ['7.1' => 100, '7.2' => 200, '7.3' => 300, '7.4' => 400, '7.5' => 500],
- ];
- util::success([
- 'asset' => $asset,
- 'notice' => $notice,
- 'todayData' => $todayData,
- 'admin' => ['avatar' => 'http://a.huahb.com/images/avatar.jpg'],
- 'visitStat' => $visitStat,
- 'incomeStat' => $incomeStat,
- ]);
- }
-
- }
|