if(strtolower($postObj->MsgType) == 'text'){???? if($postObj->Content == '你好'){???????? $template = "<xml>???????????????????????????????? <ToUserName><![CDATA[%s]]></ToUserName>???????????????????????????????? <FromUserName><![CDATA[%s]]></FromUserName>???????????????????????????????? <CreateTime>%s</CreateTime>???????????????????????????????? <MsgType><![CDATA[%s]]></MsgType>???????????????????????????????? <Content><![CDATA[%s]]></Content>???????????????????????????????? </xml>"???????? $fromUser = $postObj->ToUserName;???????? $toUser = $postObj->FromUserName;???????? $time = time();???????? $content = "您好,感謝您的關(guān)注!";???????? $msgType = 'text';???????? $info = sprintf($template,$toUser,$fromUser,$time,$msgType,$content);???????? echo $info;???? } }
- 3 回答
- 0 關(guān)注
- 1902 瀏覽
添加回答
舉報
0/150
提交
取消