作者 李宇航

合并分支 'lyh-server' 到 'master'

gx社媒分享错误处理



查看合并请求 !2091
... ... @@ -146,7 +146,8 @@ class AyrShareController extends BaseController
try {
$res = $ayrShareHelper->post_generate_jwt($data);
if($res['status'] == 'fail'){
$this->response($res['message'],Code::USER_ERROR);
$ayrShareLogic->ayr_share_edit(['profile_key'=>null,'bind_platforms'=>null,'ref_id'=>null],['id'=>$info['id']]);
$this->response('当前key值已过期,请刷新重新绑定',Code::USER_ERROR);
}
}catch (\Exception $e){
$ayrShareLogic->ayr_share_edit(['profile_key'=>null,'bind_platforms'=>null,'ref_id'=>null],['id'=>$info['id']]);
... ...