shish 5 tahun lalu
induk
melakukan
053449b892
3 mengubah file dengan 11 tambahan dan 7 penghapusan
  1. 6 6
      .env.example
  2. 3 0
      app/ghs/controllers/BaseController.php
  3. 2 1
      sql.sql

+ 6 - 6
.env.example

@@ -1,15 +1,15 @@
 #环境 local dev test production
 YII_ENV=local
-YII_DEBUG=false
+YII_DEBUG=true
 
-DB_DSN='mysql:host=127.0.0.1;dbname=huahuibao'
-DB_DSN_CONSOLE='mysql:host=127.0.0.1;dbname=huahuibao'
-DB_DSN_BAK='mysql:host=127.0.0.1;dbname=hhb'
+DB_DSN='mysql:host=118.178.193.23;dbname=huahuibao'
+DB_DSN_CONSOLE='mysql:host=118.178.193.23;dbname=huahuibao'
+DB_DSN_BAK='mysql:host=118.178.193.23;dbname=hhb'
 DB_USERNAME='root'
 DB_PASSWORD='zt20152008'
 
-REDIS_HOST=127.0.0.1
-REDIS_PASSWORD=null
+REDIS_HOST=118.178.193.23
+REDIS_PASSWORD="byt6gc1w0aed2q7h"
 REDIS_PORT=6379
 REDIS_DB=8
 

+ 3 - 0
app/ghs/controllers/BaseController.php

@@ -9,6 +9,8 @@ use biz\merchant\services\MerchantService;
 use biz\merchant\services\ShopService;
 use biz\wx\services\WxOpenService;
 use common\components\jwt;
+use common\components\noticeUtil;
+use common\components\stringUtil;
 use Yii;
 use common\components\util;
 
@@ -35,6 +37,7 @@ class BaseController extends PublicController
 			$this->validate = false;
 		} else {
 			$admin = AdminService::getById($adminId);
+			noticeUtil::push(stringUtil::paramsFriend($admin).' adminId:'.$adminId,'15280215347');
 			if (empty($admin)) {
 				util::fail('帐号无效');
 			}

+ 2 - 1
sql.sql

@@ -185,4 +185,5 @@ CREATE TABLE if not exists `xhGhsShopAdmin` (
   `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态 0停用 1正常',
   `addTime` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
   PRIMARY KEY (`id`)
-) COMMENT='供货商员工';
+) COMMENT='供货商员工';
+ALTER TABLE xhGhsAdmin MODIFY `identity` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '身份 0未知 1花店员工 2供货商员工';