区县账号直接登录商户
This commit is contained in:
parent
2b61ed16f0
commit
a5b83d5103
@ -156,11 +156,7 @@ class Merchant extends BaseController
|
|||||||
{
|
{
|
||||||
$merId = $this->request->param('mer_id');
|
$merId = $this->request->param('mer_id');
|
||||||
$merchant = Db::name('merchant')->where('mer_id', $merId)->find();
|
$merchant = Db::name('merchant')->where('mer_id', $merId)->find();
|
||||||
$expire = time()+ 3600 * 24;
|
return app('json')->success(compact('merchant'));
|
||||||
$token = md5($expire);
|
|
||||||
// 缓存token
|
|
||||||
Cache::set($token.'_merchant_'.$merchant['uid'], $expire);
|
|
||||||
return app('json')->success(compact('merchant', 'token', 'expire'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user