shish 6 лет назад
Родитель
Сommit
aeef656fe1
2 измененных файлов с 7 добавлено и 3 удалено
  1. 6 3
      app/business/controllers/ConsoleController.php
  2. 1 0
      sql.txt

+ 6 - 3
app/business/controllers/ConsoleController.php

@@ -2,6 +2,7 @@
 
 namespace business\controllers;
 
+use biz\merchant\services\MerchantAssetService;
 use Yii;
 use common\components\util;
 
@@ -11,10 +12,12 @@ class ConsoleController extends BaseController
 	//概况 shish 2019.12.19
 	public function actionProfile()
 	{
-		$data = [
-		
+		$asset = $this->merchantAsset;
+		$notice = [
+			['title' => '您还没有绑定公众号', 'action' => '立即绑定', 'url' => 'http://www.test.com'],
 		];
-		util::success($data);
+		$todayData = ['visit' => rand(9, 99), 'fans' => rand(9, 99), 'user' => rand(9, 99)];
+		util::success(['asset' => $asset, 'notice' => $notice, 'todayData' => $todayData]);
 	}
 
 }

+ 1 - 0
sql.txt

@@ -7,6 +7,7 @@ ALTER TABLE `xhMerchantAsset` ADD unSendOrder INT NOT NULL DEFAULT 0 COMMENT '
 ALTER TABLE `xhMerchantAsset` ADD unPayOrder INT NOT NULL DEFAULT 0 COMMENT '待付款订单数' AFTER `totalOrder`;
 ALTER TABLE `xhMerchantAsset` ADD finishOrder INT NOT NULL DEFAULT 0 COMMENT '完成订单数' AFTER `totalOrder`;
 ALTER TABLE `xhMerchantAsset` CHANGE `remainMsgNum` `remainSmsNum` INT NOT NULL DEFAULT 0 COMMENT '剩余短信数';
+ALTER TABLE `xhMerchantAsset` MODIFY `totalUser` INT NOT NULL DEFAULT 0 COMMENT '总用户;总客户数';
 
 2019.12.19 抽奖和活动表名的修改
 RENAME TABLE `xhLuckyDrawActivity` TO `xhDraw`;