新增订阅消息发送模版
This commit is contained in:
@@ -324,14 +324,16 @@ class Wechat
|
||||
}
|
||||
if (isset($result['errcode'])){
|
||||
if ($result['errcode'] == 43101){
|
||||
throw new BusinessException("用户拒绝接收消息");
|
||||
// 用户拒绝接收消息
|
||||
return $result;
|
||||
|
||||
}
|
||||
throw new BusinessException($result['errmsg']);
|
||||
}
|
||||
throw new BusinessException();
|
||||
}
|
||||
|
||||
return $response->getContent(false);
|
||||
return $response->toArray();
|
||||
} catch (\Exception $e) {
|
||||
throw new BusinessException($e->getMessage(), HttpEnumCode::SERVER_ERROR);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user