|
@@ -44,13 +44,14 @@ class EmpowerServies
|
|
|
$institution = $this->institutionModel->where('port_empower',$authID)->where('institution_code',$orgCode)->find();
|
|
|
if(empty($institution))
|
|
|
{
|
|
|
- return ['msg'=>'机构编码或授权码错误','data'=>[]];
|
|
|
+// return ['msg'=>'机构编码或授权码错误','data'=>[]];
|
|
|
}
|
|
|
$key = md5($orgCode.rand(0,99));
|
|
|
$expire = 3600;
|
|
|
$aesKey = $this->generateRandomLetters();
|
|
|
// todo
|
|
|
$aesKey = 'zLxapoeqWYpoeqWY';
|
|
|
+ $institution['id'] = '001';
|
|
|
$token = base64_encode(md5($orgCode.$institution['id'].$aesKey));
|
|
|
$arr = ['token'=>$token,'key'=>$aesKey,'expire'=>$expire,'appId'=>$key,'orgCode'=>$orgCode];
|
|
|
// if(empty(Cache::get($orgCode)))
|