Redis连接迁移: 47.100.78.112 DB2 用法改连本机 127.0.0.1(qwe2019@/DB15)

This commit is contained in:
liufumingren 2026-09-26 02:12:11 +08:00
parent 6f4b2c46d3
commit 2afd401ddd
4 changed files with 21 additions and 21 deletions

View File

@ -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){

View File

@ -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'];

View File

@ -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]));
}

View File

@ -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';