The public platform cannot issue a link... Text
Public function responseMsg () {$ postStr = $ GLOBALS ["HTTP_RAW_POST_DATA"]; if (! Empty ($ postStr) {$ postObj = simplexml_load_string ($ postStr, 'simplexmlelement', LIBXML_NOCDATA); $ fromUsername = $ postObj-> FromUserName; $ toUsername = $ postObj-> ToUserName; $ keyword = trim ($ postObj-> Content); $ time = time (); $ textTpl ="
%s
%s
% S
link
<! [CDATA [public platform developers]>
陈坤的公众号这段时间大火,大家..
http://israel.duapp.com/web/photo.php
5839907284805129867
"; If ($ keyword = "? "| $ Keyword = "? ") {$ ResultStr = sprintf ($ textTpl, $ fromUsername, $ toUsername, $ time); echo $ resultStr ;}} else {echo" "; exit ;}}
Me? No reply ..
Reply to discussion (solution)
I have never done any development.
This problem is usually caused by whether it can be implemented in the if logic.
You raise the question mark. do you receive the question mark.
I have never done any development.
This problem is usually caused by whether it can be implemented in the if logic.
You raise the question mark. do you receive the question mark. Development ..... It seems that there is no way to debug it ..
Public function responseMsg () {$ postStr = $ GLOBALS ["HTTP_RAW_POST_DATA"]; if (! Empty ($ postStr) {$ postObj = simplexml_load_string ($ postStr, 'simplexmlelement', LIBXML_NOCDATA); $ fromUsername = $ postObj-> FromUserName; $ toUsername = $ postObj-> ToUserName; $ keyword = trim ($ postObj-> Content); $ time = time (); $ textTpl ="
%s
%s
% S
news
1
<! [CDATA [[Apple product information query]>
序列号:USE IMEI NUMBERIMEI号:358031058974471设备名称:iPhone 5C设备颜色:设备容量:激活状态:已激活电话支持:未过期[2014-01-13]硬件保修:未过期[2014-10-14]生产工厂:中国
http://avatar.csdn.net/B/1/5/1_u013582606.jpg
0
"; If ($ keyword = "? "| $ Keyword = "? ") {$ ResultStr = sprintf ($ textTpl, $ fromUsername, $ toUsername, $ time); echo $ resultStr ;}} else {echo" "; exit ;}}
I cannot use text or text.
Php can be debugged.
You can write some content you want to read into a txt file.
This is equivalent to logging.
Php can be debugged.
You can write some content you want to read into a txt file.
This is equivalent to logging. Good way to give you a score