首页 > 其他 > 详细

slim中返回结果加密的

时间:2017-03-20 18:47:40      阅读:154      评论:0      收藏:0      [点我收藏+]

//返回结果不加密

$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‘=>‘充值成功‘]);
 });

slim中返回结果加密的

原文:http://www.cnblogs.com/chiruno/p/6590620.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!