新增订阅消息发送模版

This commit is contained in:
2023-03-24 14:37:31 +08:00
parent 3ca98021a0
commit cfba03797e
7 changed files with 435 additions and 168 deletions
+4 -2
View File
@@ -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);
}