Commit c17d3849 by mushishixian

fix

parent a3b5b54c
......@@ -63,6 +63,10 @@ REDIS_HOST=192.168.1.235
REDIS_PASSWORD=icDb29mLy2s
REDIS_PORT=6379
REDIS_USER_HOST=192.168.1.235
REDIS_USER_PASSWORD=icDb29mLy2s
REDIS_USER_PORT=6379
REDIS_READ_HOST=192.168.1.237
REDIS_READ_PASSWORD=icDb29mLy2s
REDIS_READ_PORT=6379
......
......@@ -14,6 +14,7 @@ use App\Model\SupplierChannelModel;
use App\Model\SupplierLogModel;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Redis;
use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Message\AMQPMessage;
......@@ -58,7 +59,8 @@ class SupplierAccountApiController extends Controller
$id = $model->insertGetId($data);
if ($id) {
//还要插入一个redis
$redis = new RedisModel();
// $redis = new RedisModel();
$redis = Redis::connection('user');
$redis->hset('yunxin_api_user_mobile', $data['mobile'], $id);
$accountService = new SupplierAccountService();
$accountService->pushToInitData($data['supplier_code']);
......
......@@ -236,6 +236,13 @@ return [
'port' => env('REDIS_READ_PORT', 6379),
'database' => 0,
'read_write_timeout' => 0,//new
],
'user' => [
'host' => env('REDIS_USER_HOST', ''),
'password' => env('REDIS_USER_PASSWORD', null),
'port' => env('REDIS_USER_PORT', 6379),
'database' => 0,
'read_write_timeout' => 0,//new
]
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment