|
|
@@ -13,6 +13,7 @@ use bizHd\stat\services\StatVisitService;
|
|
|
use common\components\dict;
|
|
|
use common\components\httpUtil;
|
|
|
use common\components\util;
|
|
|
+use Yii;
|
|
|
|
|
|
class ConsoleController extends BaseController
|
|
|
{
|
|
|
@@ -22,6 +23,8 @@ class ConsoleController extends BaseController
|
|
|
//概况 ssh 2019.12.19
|
|
|
public function actionProfile()
|
|
|
{
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $isMini = $get['isMini'] ?? 0;
|
|
|
//试用期到期时间
|
|
|
$notice = [];
|
|
|
$sj = isset($this->sj) && !empty($this->sj) ? $this->sj->attributes : [];
|
|
|
@@ -57,7 +60,12 @@ class ConsoleController extends BaseController
|
|
|
//$notice = array_merge($notice, [['title' => '开启提醒,批发店花材做特价及时通知您', 'action' => '开启', 'page' => '/pagesClient/official/warn']]);
|
|
|
}
|
|
|
|
|
|
- $notice = [['title' => '绑定帐号,下次自动登录后台', 'action' => '去绑定', 'page' => '/admin/staff/miniAutoLogin']];
|
|
|
+ if ($isMini == 1 && !empty($admin)) {
|
|
|
+ $miniOpenId = $admin['miniOpenId'] ?? '';
|
|
|
+ if (empty($miniOpenId)) {
|
|
|
+ $notice = [['title' => '帐号绑定小程序,下次自动登录后台', 'action' => '去绑定', 'page' => '/admin/staff/miniAutoLogin']];
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
if (isset($this->shop) && !empty($this->shop)) {
|
|
|
//今天访客
|