|
...
|
...
|
@@ -143,10 +143,15 @@ class AyrShareController extends BaseController |
|
|
|
$data = [
|
|
|
|
'profileKey'=>$info['profile_key']
|
|
|
|
];
|
|
|
|
try {
|
|
|
|
$res = $ayrShareHelper->post_generate_jwt($data);
|
|
|
|
if($res['status'] == 'fail'){
|
|
|
|
$this->response($res['message'],Code::USER_ERROR);
|
|
|
|
}
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$ayrShareLogic->ayr_share_edit(['profile_key'=>null,'bind_platforms'=>null,'ref_id'=>null],['id'=>$info['id']]);
|
|
|
|
$this->response('当前key值已过期,请刷新重新绑定',Code::USER_ERROR);
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$res);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|