1
This commit is contained in:
parent
6ad5abc7cc
commit
a8cb9f0f94
2
third_party/phpcommon
vendored
2
third_party/phpcommon
vendored
@ -1 +1 @@
|
||||
Subproject commit 2e7067d848c09897f27e6486c38399b27126ca26
|
||||
Subproject commit 1e3bb4df855f6d11df75545d10b0c2aacea34a06
|
@ -210,6 +210,7 @@ class KefuController {
|
||||
|
||||
private function sendKefuMsg($accountid, $data)
|
||||
{
|
||||
try {
|
||||
$gameid = phpcommon\extractGameId($accountid);
|
||||
$access_token = $this->getAccessToken($gameid);
|
||||
$url = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=" . urlencode($access_token);
|
||||
@ -242,6 +243,10 @@ class KefuController {
|
||||
$ret_info = json_decode($response, true);
|
||||
}
|
||||
return !empty($ret_info) && $ret_info['errcode'] == 0;
|
||||
} catch (Exception $e) {
|
||||
error_log($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private function sendOneDBInfo($conn, &$media_conf)
|
||||
|
Loading…
x
Reference in New Issue
Block a user