diff --git a/application/api/controller/Express.php b/application/api/controller/Express.php index 3188eae..bfec2aa 100644 --- a/application/api/controller/Express.php +++ b/application/api/controller/Express.php @@ -25,9 +25,9 @@ class Express extends Api $POSTCODE = $params['postcode']; $TIMECODE = $params['timecode']; $redis = new \Redis(); - $redis->connect('47.100.78.112', 6379); - $redis->auth('qwe2019'); - $redis->select(2); + $redis->connect('127.0.0.1', 6379); + $redis->auth('qwe2019@'); + $redis->select(15); $data = []; $infos = $redis->get("ExpressSummary_".$POSTCODE."_".$TIMECODE."_".$WAREHOUSEID); if($infos){ diff --git a/application/api/controller/Wms.php b/application/api/controller/Wms.php index 557c4cd..de13234 100644 --- a/application/api/controller/Wms.php +++ b/application/api/controller/Wms.php @@ -29,9 +29,9 @@ class Wms extends Api $this->redis->auth('qwe2019@'); $this->redis->select(2); $this->express_redis = new \Redis(); - $this->express_redis->connect('47.100.78.112', 6379); - $this->express_redis->auth('qwe2019'); - $this->express_redis->select(2); + $this->express_redis->connect('127.0.0.1', 6379); + $this->express_redis->auth('qwe2019@'); + $this->express_redis->select(15); } protected $noNeedLogin = ['resubscribe']; protected $noNeedRight = ['create_subscribe','resubscribe']; diff --git a/application/index/controller/wms/Chat.php b/application/index/controller/wms/Chat.php index f460dce..3e2f572 100644 --- a/application/index/controller/wms/Chat.php +++ b/application/index/controller/wms/Chat.php @@ -2191,9 +2191,9 @@ _________________________________________________________ private function lanshou($from,$postnums,$msgid,$info=""){ if(count($postnums)>0){ $redis = new \Redis(); - $redis->connect('47.100.78.112', 6379); - $redis->auth('qwe2019'); - $redis->select(2); + $redis->connect('127.0.0.1', 6379); + $redis->auth('qwe2019@'); + $redis->select(15); $msgs = []; $text = ""; $posttype = []; @@ -2405,15 +2405,15 @@ _________________________________________________________ } private function reRecord($WAREHOUSEID,$workId,$msgId){ $redis = new \Redis(); - $redis->connect('47.100.78.112', 6379); - $redis->auth('qwe2019'); + $redis->connect('127.0.0.1', 6379); + $redis->auth('qwe2019@'); $redis->select(3); $redis->lpush("ware:{$WAREHOUSEID}:reRecord",json_encode([$workId,$msgId])); } private function reRecord2($WAREHOUSEID,$workId,$msgId){ $redis = new \Redis(); - $redis->connect('47.100.78.112', 6379); - $redis->auth('qwe2019'); + $redis->connect('127.0.0.1', 6379); + $redis->auth('qwe2019@'); $redis->select(3); $redis->lpush("ware:{$WAREHOUSEID}:reRecord2",json_encode([$workId,$msgId])); } diff --git a/application/index/controller/wms/Wms.php b/application/index/controller/wms/Wms.php index 88710b2..6cc5539 100644 --- a/application/index/controller/wms/Wms.php +++ b/application/index/controller/wms/Wms.php @@ -42,9 +42,9 @@ class Wms extends Frontend $this->redis->auth('qwe2019@'); $this->redis->select(2); $this->express_redis = new \Redis(); - $this->express_redis->connect('47.100.78.112', 6379); - $this->express_redis->auth('qwe2019'); - $this->express_redis->select(2); + $this->express_redis->connect('127.0.0.1', 6379); + $this->express_redis->auth('qwe2019@'); + $this->express_redis->select(15); $this->postcodeList = []; $this->RulesModel = new \app\common\model\wms\PickingRules; $this->wechatServer = "42.194.235.215"; @@ -1751,8 +1751,8 @@ class Wms extends Frontend $packedInfo->end_time = time(); $packedInfo->save(); $redis = new \Redis(); - $redis->connect('47.100.78.112', 6379); - $redis->auth('qwe2019'); + $redis->connect('127.0.0.1', 6379); + $redis->auth('qwe2019@'); $redis->select(3); $redis->lpush("ware:{$WAREHOUSEID}:reRecord2",json_encode([$packedInfo->id,0])); } @@ -11313,10 +11313,10 @@ class Wms extends Frontend public function test2(){ $redis = new \Redis(); try { - $redis->connect('47.100.78.112', 6379); + $redis->connect('127.0.0.1', 6379); // 如果有密码认证 - $redis->auth('qwe2019'); - $redis->select(2); + $redis->auth('qwe2019@'); + $redis->select(15); // 指定要查找的键和目标字符串 $key = 'GalaxyReceive_5400_back'; $targetString = '773385681859002';