您好,欢迎访问一九零五行业门户网

微信公众平台不能发出带链接的文字

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 5839907284805129867 ; if($keyword == ? || $keyword == ?) { $resultstr = sprintf($texttpl, $fromusername, $tousername, $time); echo $resultstr; } }else{ echo ; exit; } }
我打个?上去没有回复。。
回复讨论(解决方案) 微信开发没做过。
通常遇到这问题是看能不能执行到if逻辑里面。
你上行问号,接收到的是问号么。
微信开发没做过。
通常遇到这问题是看能不能执行到if逻辑里面。
你上行问号,接收到的是问号么。 微信开发。。。。。还真没办法调试貌似。。
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 1 0 ; if($keyword == ? || $keyword == ?) { $resultstr = sprintf($texttpl, $fromusername, $tousername, $time); echo $resultstr; } }else{ echo ; exit; } }
用图文也不行
php 是可以调试的.
你可以把一些自己想看的内容写到一个txt文件中。
这样就可以看了,相当于记录日志。
php 是可以调试的.
你可以把一些自己想看的内容写到一个txt文件中。
这样就可以看了,相当于记录日志。 好方法 分数给你了
其它类似信息

推荐信息