移除无用的变量 $msg

This commit is contained in:
aozhiwei 2019-01-25 16:35:22 +08:00
parent 78991bc863
commit 33115ca733

View File

@ -464,15 +464,13 @@ class KefuController {
private function responseMsg()
{
$postStr_key = $GLOBALS["HTTP_RAW_POST_DATA"];
$pc = new WXBizMsgCrypt(WEIXIN_TOKEN, WEIXIN_MSG_KEY, WEIXIN_APP_ID);
$gameid = $_REQUEST['gameid'];
$msg = '';
$msg_sign = $_REQUEST['msg_signature'];
$timeStamp = $_REQUEST['timestamp'];
$nonce = $_REQUEST['nonce'];
$pc = new WXBizMsgCrypt(WEIXIN_TOKEN, WEIXIN_MSG_KEY, WEIXIN_APP_ID);
$errcode = $pc->decryptJsonMsg($msg_sign, $timeStamp, $nonce, $postStr_key, $postStr);
#error_log('#error_log:' . json_encode($errcode));
if ($errcode == 0) {
#error_log("解密后: " . $postStr . "\n");
if (!empty( $postStr ) && is_string( $postStr )){