Redis连接迁移: 47.100.78.112 DB2 用法改连本机 127.0.0.1(qwe2019@/DB15)
This commit is contained in:
parent
6f4b2c46d3
commit
2afd401ddd
@ -25,9 +25,9 @@ class Express extends Api
|
|||||||
$POSTCODE = $params['postcode'];
|
$POSTCODE = $params['postcode'];
|
||||||
$TIMECODE = $params['timecode'];
|
$TIMECODE = $params['timecode'];
|
||||||
$redis = new \Redis();
|
$redis = new \Redis();
|
||||||
$redis->connect('47.100.78.112', 6379);
|
$redis->connect('127.0.0.1', 6379);
|
||||||
$redis->auth('qwe2019');
|
$redis->auth('qwe2019@');
|
||||||
$redis->select(2);
|
$redis->select(15);
|
||||||
$data = [];
|
$data = [];
|
||||||
$infos = $redis->get("ExpressSummary_".$POSTCODE."_".$TIMECODE."_".$WAREHOUSEID);
|
$infos = $redis->get("ExpressSummary_".$POSTCODE."_".$TIMECODE."_".$WAREHOUSEID);
|
||||||
if($infos){
|
if($infos){
|
||||||
|
|||||||
@ -29,9 +29,9 @@ class Wms extends Api
|
|||||||
$this->redis->auth('qwe2019@');
|
$this->redis->auth('qwe2019@');
|
||||||
$this->redis->select(2);
|
$this->redis->select(2);
|
||||||
$this->express_redis = new \Redis();
|
$this->express_redis = new \Redis();
|
||||||
$this->express_redis->connect('47.100.78.112', 6379);
|
$this->express_redis->connect('127.0.0.1', 6379);
|
||||||
$this->express_redis->auth('qwe2019');
|
$this->express_redis->auth('qwe2019@');
|
||||||
$this->express_redis->select(2);
|
$this->express_redis->select(15);
|
||||||
}
|
}
|
||||||
protected $noNeedLogin = ['resubscribe'];
|
protected $noNeedLogin = ['resubscribe'];
|
||||||
protected $noNeedRight = ['create_subscribe','resubscribe'];
|
protected $noNeedRight = ['create_subscribe','resubscribe'];
|
||||||
|
|||||||
@ -2191,9 +2191,9 @@ _________________________________________________________
|
|||||||
private function lanshou($from,$postnums,$msgid,$info=""){
|
private function lanshou($from,$postnums,$msgid,$info=""){
|
||||||
if(count($postnums)>0){
|
if(count($postnums)>0){
|
||||||
$redis = new \Redis();
|
$redis = new \Redis();
|
||||||
$redis->connect('47.100.78.112', 6379);
|
$redis->connect('127.0.0.1', 6379);
|
||||||
$redis->auth('qwe2019');
|
$redis->auth('qwe2019@');
|
||||||
$redis->select(2);
|
$redis->select(15);
|
||||||
$msgs = [];
|
$msgs = [];
|
||||||
$text = "";
|
$text = "";
|
||||||
$posttype = [];
|
$posttype = [];
|
||||||
@ -2405,15 +2405,15 @@ _________________________________________________________
|
|||||||
}
|
}
|
||||||
private function reRecord($WAREHOUSEID,$workId,$msgId){
|
private function reRecord($WAREHOUSEID,$workId,$msgId){
|
||||||
$redis = new \Redis();
|
$redis = new \Redis();
|
||||||
$redis->connect('47.100.78.112', 6379);
|
$redis->connect('127.0.0.1', 6379);
|
||||||
$redis->auth('qwe2019');
|
$redis->auth('qwe2019@');
|
||||||
$redis->select(3);
|
$redis->select(3);
|
||||||
$redis->lpush("ware:{$WAREHOUSEID}:reRecord",json_encode([$workId,$msgId]));
|
$redis->lpush("ware:{$WAREHOUSEID}:reRecord",json_encode([$workId,$msgId]));
|
||||||
}
|
}
|
||||||
private function reRecord2($WAREHOUSEID,$workId,$msgId){
|
private function reRecord2($WAREHOUSEID,$workId,$msgId){
|
||||||
$redis = new \Redis();
|
$redis = new \Redis();
|
||||||
$redis->connect('47.100.78.112', 6379);
|
$redis->connect('127.0.0.1', 6379);
|
||||||
$redis->auth('qwe2019');
|
$redis->auth('qwe2019@');
|
||||||
$redis->select(3);
|
$redis->select(3);
|
||||||
$redis->lpush("ware:{$WAREHOUSEID}:reRecord2",json_encode([$workId,$msgId]));
|
$redis->lpush("ware:{$WAREHOUSEID}:reRecord2",json_encode([$workId,$msgId]));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,9 +42,9 @@ class Wms extends Frontend
|
|||||||
$this->redis->auth('qwe2019@');
|
$this->redis->auth('qwe2019@');
|
||||||
$this->redis->select(2);
|
$this->redis->select(2);
|
||||||
$this->express_redis = new \Redis();
|
$this->express_redis = new \Redis();
|
||||||
$this->express_redis->connect('47.100.78.112', 6379);
|
$this->express_redis->connect('127.0.0.1', 6379);
|
||||||
$this->express_redis->auth('qwe2019');
|
$this->express_redis->auth('qwe2019@');
|
||||||
$this->express_redis->select(2);
|
$this->express_redis->select(15);
|
||||||
$this->postcodeList = [];
|
$this->postcodeList = [];
|
||||||
$this->RulesModel = new \app\common\model\wms\PickingRules;
|
$this->RulesModel = new \app\common\model\wms\PickingRules;
|
||||||
$this->wechatServer = "42.194.235.215";
|
$this->wechatServer = "42.194.235.215";
|
||||||
@ -1751,8 +1751,8 @@ class Wms extends Frontend
|
|||||||
$packedInfo->end_time = time();
|
$packedInfo->end_time = time();
|
||||||
$packedInfo->save();
|
$packedInfo->save();
|
||||||
$redis = new \Redis();
|
$redis = new \Redis();
|
||||||
$redis->connect('47.100.78.112', 6379);
|
$redis->connect('127.0.0.1', 6379);
|
||||||
$redis->auth('qwe2019');
|
$redis->auth('qwe2019@');
|
||||||
$redis->select(3);
|
$redis->select(3);
|
||||||
$redis->lpush("ware:{$WAREHOUSEID}:reRecord2",json_encode([$packedInfo->id,0]));
|
$redis->lpush("ware:{$WAREHOUSEID}:reRecord2",json_encode([$packedInfo->id,0]));
|
||||||
}
|
}
|
||||||
@ -11313,10 +11313,10 @@ class Wms extends Frontend
|
|||||||
public function test2(){
|
public function test2(){
|
||||||
$redis = new \Redis();
|
$redis = new \Redis();
|
||||||
try {
|
try {
|
||||||
$redis->connect('47.100.78.112', 6379);
|
$redis->connect('127.0.0.1', 6379);
|
||||||
// 如果有密码认证
|
// 如果有密码认证
|
||||||
$redis->auth('qwe2019');
|
$redis->auth('qwe2019@');
|
||||||
$redis->select(2);
|
$redis->select(15);
|
||||||
// 指定要查找的键和目标字符串
|
// 指定要查找的键和目标字符串
|
||||||
$key = 'GalaxyReceive_5400_back';
|
$key = 'GalaxyReceive_5400_back';
|
||||||
$targetString = '773385681859002';
|
$targetString = '773385681859002';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user