ConsoleController.php 1019 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace business\controllers;
  3. use Yii;
  4. use common\components\util;
  5. class ConsoleController extends BaseController
  6. {
  7. //概况 shish 2019.12.19
  8. public function actionProfile()
  9. {
  10. $asset = $this->merchantAsset;
  11. $notice = [
  12. ['title' => '您还没有绑定公众号', 'action' => '立即绑定', 'url' => 'http://www.test.com'],
  13. ];
  14. $todayData = ['visit' => rand(9, 99), 'fans' => rand(9, 99), 'user' => rand(9, 99), 'income' => rand(11, 999), 'order' => rand(111, 999)];
  15. $incomeStat = [
  16. 'month' => 1999,
  17. 'week' => 999,
  18. 'list' => ['7.1' => 100, '7.2' => 200, '7.3' => 300, '7.4' => 400, '7.5' => 500],
  19. ];
  20. $visitStat = [
  21. 'month' => 1999,
  22. 'week' => 999,
  23. 'list' => ['7.1' => 100, '7.2' => 200, '7.3' => 300, '7.4' => 400, '7.5' => 500],
  24. ];
  25. util::success([
  26. 'asset' => $asset,
  27. 'notice' => $notice,
  28. 'todayData' => $todayData,
  29. 'admin' => ['avatar' => 'http://a.huahb.com/images/avatar.jpg'],
  30. 'visitStat' => $visitStat,
  31. 'incomeStat' => $incomeStat,
  32. ]);
  33. }
  34. }