无脑操作举例
1、找到 WeixinAction.class.php 文件,路径: 你的版本\PigCms\Lib\Action\Home
2、查询 function chat ,在 chat() 函数中修改 return 值
复制代码 代码如下:
return 'str_replace('highsea', 'hi', $str)';//举个例子
为,如下:
return '亲,请等待客服回复~';
3、(可选)最后注释掉“小黄鸡”部分(可以不注释也可以):
复制代码 代码如下:
/*$str = 'http://api.bd001.com/iMicms_com/api.php?key=free&appid=0&msg=' . urlencode($name);
$json = Http::fsockopenDownload($str);
if ($json == false) {
$json = file_get_contents($str);
}
$json = json_decode($json, true);
$str = str_replace('HighSea', $this->my, str_replace('提示:', $this->my . '提醒您:', str_replace('{br}', "\n", $json['content'])));*/