mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[测试]微信通知测试
This commit is contained in:
parent
605818ff1a
commit
93ef2bdfdf
@ -59,7 +59,9 @@ class ReceiveHandler
|
|||||||
if (is_array($json = json_decode($result, true))) {
|
if (is_array($json = json_decode($result, true))) {
|
||||||
p('===== 已返回xml加密内容 =====');
|
p('===== 已返回xml加密内容 =====');
|
||||||
p($json);
|
p($json);
|
||||||
return $service->reply($json, true, $service->isEncrypt());
|
$xml = $service->reply($json, true, $service->isEncrypt());
|
||||||
|
p($xml);
|
||||||
|
return $xml;
|
||||||
} else {
|
} else {
|
||||||
p('===== 直接回复返回的内容 =====');
|
p('===== 直接回复返回的内容 =====');
|
||||||
return $result;
|
return $result;
|
||||||
|
@ -94,7 +94,6 @@ class Push extends Controller
|
|||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->wechat = WechatService::WeChatReceive();
|
|
||||||
if ($this->request->has('receive', 'post') && WechatService::getType() === 'thr') {
|
if ($this->request->has('receive', 'post') && WechatService::getType() === 'thr') {
|
||||||
$this->forceJson = true; // 强制返回JSON到服务端再转发
|
$this->forceJson = true; // 强制返回JSON到服务端再转发
|
||||||
$this->forceCustom = false; // 暂停使用客户消息模式
|
$this->forceCustom = false; // 暂停使用客户消息模式
|
||||||
@ -108,6 +107,7 @@ class Push extends Controller
|
|||||||
} else {
|
} else {
|
||||||
$this->forceJson = false; // 暂停返回JSON消息对象
|
$this->forceJson = false; // 暂停返回JSON消息对象
|
||||||
$this->forceCustom = false; // 暂停使用客户消息模式
|
$this->forceCustom = false; // 暂停使用客户消息模式
|
||||||
|
$this->wechat = WechatService::WeChatReceive();
|
||||||
$this->appid = WechatService::getAppid();
|
$this->appid = WechatService::getAppid();
|
||||||
$this->openid = $this->wechat->getOpenid();
|
$this->openid = $this->wechat->getOpenid();
|
||||||
$this->encrypt = $this->wechat->isEncrypt();
|
$this->encrypt = $this->wechat->isEncrypt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user