TP 3.1.3之前是IndexAction,之后的版本(3.2.X,5.0)就是IndexController。
2017-04-14
可以使用接口調(diào)試工具,查看返回內(nèi)容 https://mp.weixin.qq.com/debug/
2017-04-12
出現(xiàn)無法提供服務(wù)時,應(yīng)該在Model類中加上命名空間
namespace Home\Model;
use Think\Model;
另外,需要在實例化對象時,寫成$WeixinModel = new \Home\Model\WeixinModel();
$WeixinModel->responseMsg($postObj);
namespace Home\Model;
use Think\Model;
另外,需要在實例化對象時,寫成$WeixinModel = new \Home\Model\WeixinModel();
$WeixinModel->responseMsg($postObj);
2017-04-07
3.2.3的tp 應(yīng)該這么用
$indexModel = new \Home\Model\IndexModel();
$indexModel = new \Home\Model\IndexModel();
2017-03-30