💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
##宝贵意见接口 ### 1.调试接口 +++ post:http://www.dakaifa.net/index.php?g=App&m=My&a=opinion *string:msg=这款app不错哦~#意见内容 *string:phone=13834626385#手机号 *string:uname=张天#用户名 <<< success { "msg": 1 } <<< error { "msg": 0 } +++ ### 2.接口代码 ``` public function opinion(){ $msg = $_POST['msg']; $phone = $_POST['phone']; $full_name = $_POST['uname']; $guest_model = M('guestbook'); $data['full_name'] = $full_name; $data['phone'] = $phone; $data['msg'] = $msg; $result = $guest_model->add($data); if ($result) { $ret = array('msg'=>1); echo json_encode($ret); }else{ $ret = array('msg'=>0); echo json_encode($ret); } } ```