diff --git a/application/api/controller/Wms.php b/application/api/controller/Wms.php index de13234..7e4dda1 100644 --- a/application/api/controller/Wms.php +++ b/application/api/controller/Wms.php @@ -737,7 +737,7 @@ class Wms extends Api $POSTCODE = $this->request->get('POSTCODE'); $redis = new \Redis(); $redis->connect('127.0.0.1', 6379); - $redis->auth('qwe2019'); + $redis->auth('qwe2019@'); $redis->select(2); $redis->lpush('subscribe_tasks',json_encode(['taskID'=>$taskID,'POSTCODE'=>$POSTCODE])); */ diff --git a/application/common/model/Express.php b/application/common/model/Express.php index 6799aaf..072d25a 100644 --- a/application/common/model/Express.php +++ b/application/common/model/Express.php @@ -70,7 +70,7 @@ class Express extends Model $random = Random::alnum(10); $redis = new \Redis(); $redis->connect('127.0.0.1', 6379); - $redis->auth('qwe2019'); + $redis->auth('qwe2019@'); $redis->select(2); $taskID = $random.'_'.$POSTCODE.'_'.time(); $redis->lpush('subscribe_tasks',json_encode(['taskID'=>$taskID,'POSTCODE'=>$POSTCODE])); diff --git a/application/index/controller/Express.php b/application/index/controller/Express.php index e5c5930..06e3697 100644 --- a/application/index/controller/Express.php +++ b/application/index/controller/Express.php @@ -20,7 +20,7 @@ class Express extends Frontend $redis = new \Redis(); $redis->connect('127.0.0.1', 6379); - $redis->auth('qwe2019'); + $redis->auth('qwe2019@'); $redis->select(2); $dd = $redis->lpush("order",$params['content']); $redis->close();