|
@@ -2099,10 +2099,17 @@ class OrderSuperLoss extends Api
|
|
|
->select();
|
|
->select();
|
|
|
|
|
|
|
|
// 创建redis
|
|
// 创建redis
|
|
|
- $redis = new \Redis();
|
|
|
|
|
- $redis->connect('127.0.0.1', 6379, 0);
|
|
|
|
|
- $redis->auth('');
|
|
|
|
|
- $redis->select(14);
|
|
|
|
|
|
|
+ $options = [
|
|
|
|
|
+ 'host' => '127.0.0.1',
|
|
|
|
|
+ 'port' => 6379,
|
|
|
|
|
+ 'password' => '',
|
|
|
|
|
+ 'select' => 14,
|
|
|
|
|
+ 'timeout' => 0,
|
|
|
|
|
+ 'expire' => 0,
|
|
|
|
|
+ 'persistent' => false,
|
|
|
|
|
+ 'prefix' => '',
|
|
|
|
|
+ ];
|
|
|
|
|
+ $redis = new Redis($options);
|
|
|
|
|
|
|
|
// 生成批次ID
|
|
// 生成批次ID
|
|
|
$batchId = 'batch_' . uniqid() . '_' . time();
|
|
$batchId = 'batch_' . uniqid() . '_' . time();
|