标签:turn his game return 返回 open 返回结果 nbsp request
//返回结果不加密
$this->get("/open]",function (Request $request, Response $response, $args) {
$response->write(json_encode([‘status‘=>2,‘code‘=>null,‘money‘=>1,‘gamemoney‘=>10,‘msg‘=>‘充值成功‘]));
return $response;
});
//返回结果加密
$this->get("/open]",function (Request $request, Response $response, $args) {
return $response->withJson([‘status‘=>2,‘code‘=>null,‘money‘=>1,‘gamemoney‘=>10,‘msg‘=>‘充值成功‘]);
});
标签:turn his game return 返回 open 返回结果 nbsp request
原文地址:http://www.cnblogs.com/chiruno/p/6590620.html