mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]添加微信API调试
This commit is contained in:
parent
fd2be21d6d
commit
abc6e17bfe
@ -64,13 +64,21 @@ class Api extends Controller {
|
|||||||
switch ($this->wechat->getRev()->getRevType()) {
|
switch ($this->wechat->getRev()->getRevType()) {
|
||||||
case WechatReceive::MSGTYPE_TEXT:
|
case WechatReceive::MSGTYPE_TEXT:
|
||||||
$keys = $this->wechat->getRevContent();
|
$keys = $this->wechat->getRevContent();
|
||||||
return $this->_keys("wechat_keys#keys#{$keys}");
|
$reply = $this->_keys("wechat_keys#keys#{$keys}");
|
||||||
|
p($reply);
|
||||||
|
return $reply;
|
||||||
case WechatReceive::MSGTYPE_EVENT:
|
case WechatReceive::MSGTYPE_EVENT:
|
||||||
return $this->_event();
|
$reply = $this->_event();
|
||||||
|
p($reply);
|
||||||
|
return $reply;
|
||||||
case WechatReceive::MSGTYPE_IMAGE:
|
case WechatReceive::MSGTYPE_IMAGE:
|
||||||
return $this->_image();
|
$reply = $this->_image();
|
||||||
|
p($reply);
|
||||||
|
return $reply;
|
||||||
case WechatReceive::MSGTYPE_LOCATION:
|
case WechatReceive::MSGTYPE_LOCATION:
|
||||||
return $this->_location();
|
$reply = $this->_location();
|
||||||
|
p($reply);
|
||||||
|
return $reply;
|
||||||
default:
|
default:
|
||||||
return 'success';
|
return 'success';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user