注释测试代码

master
tpingzhang 5 years ago
parent dd3bb8233a
commit 6558af1972

@ -40,10 +40,10 @@ class GameController extends BaseController{
public function init_sdk() { public function init_sdk() {
$data = json_decode(base64_decode(file_get_contents("php://input")), true); $data = json_decode(base64_decode(file_get_contents("php://input")), true);
if (I('debug') == 1) { /* if (I('debug') == 1) {
$data['user_id'] = 1; $data['user_id'] = 1;
$data['sdk_version'] = 2; $data['sdk_version'] = 2;
} } */
$contact_cs = M('tool','tab_')->where(['name' => 'contact_cs'])->find(); $contact_cs = M('tool','tab_')->where(['name' => 'contact_cs'])->find();
$contact_cs = json_decode($contact_cs['config'],true); $contact_cs = json_decode($contact_cs['config'],true);
@ -83,8 +83,8 @@ class GameController extends BaseController{
$ret = [ $ret = [
'contact_cs' => $contact_cs[$k], 'contact_cs' => $contact_cs[$k],
]; ];
if (I('debug') == 1) /* if (I('debug') == 1)
pp(($ret)); pp(($ret)); */
re_msg(200,'获取成功',$ret); re_msg(200,'获取成功',$ret);
} }

Loading…
Cancel
Save