//返回結果不加密json
$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
//返回結果加密加密
$this->get("/open]",function (Request $request, Response $response, $args) {code
return $response->withJson(['status'=>2,'code'=>null,'money'=>1,'gamemoney'=>10,'msg'=>'充值成功']);
});get