SportsfootController.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. <?php
  2. namespace App\Http\Controllers\Admin;
  3. use App\Http\Controllers\Controller;
  4. use Illuminate\Http\Request as Req;
  5. use Illuminate\Support\Facades\DB;
  6. Use App\Lib\Settlement\SettlementOrder;
  7. use App\Models;
  8. use Request;
  9. /**
  10. *足球结算
  11. */
  12. class SportsfootController extends Controller {
  13. function Settlement(Req $req){
  14. $jsurl = config('sconstant.url');//结算请求域名地址
  15. $match_id = $req->match_id;
  16. $type = $req->type;
  17. $token = session('adminInfo.token');
  18. $notice = \App\Models\Comendnotice::where('match_id', $match_id)->first();
  19. $noticeid = $notice['id'];
  20. //查询赛事单式是否有订单(足球)
  21. $newapp = new \App\Models\MoneyBuyMatch();
  22. $simplex_ids = array_column($newapp->allsimplexorder($match_id,'zq'),'order_id');
  23. $str_ids = array_column($newapp->allstrorder($match_id),'order_id');
  24. if(count($simplex_ids)>0 || count($str_ids)>0){
  25. $requet = file_get_contents($jsurl."/WinFail?noticeid=".$noticeid."&token=".$token);
  26. if(json_decode($requet,true)['status']==1){
  27. $napp = new \App\Models\Stzqresult();
  28. //单式结算
  29. if(count($simplex_ids)>0 && count($str_ids)==0){
  30. $huawei_res = $napp->simplexs($token,$match_id,$jsurl,'zq');
  31. if($huawei_res['status']==1){
  32. return json_encode(['status'=>1,'msg'=>'单式结算成功,没有串式订单']);
  33. }else{
  34. return json_encode(['status'=>3,'msg'=>'单式结算有误,请联系管理员!!!('.$huawei_res['msg'].')']);//结算错误
  35. }
  36. }elseif(count($str_ids)>0 && count($simplex_ids)==0){
  37. //串式结算
  38. $tandem_res = $napp->tandems($token,$match_id,$jsurl,'zq');
  39. if($tandem_res['status']==1){
  40. return json_encode(['status'=>1,'msg'=>'串式结算成功,没有单式订单']);
  41. }else{
  42. return json_encode(['status'=>3,'msg'=>'串式结算有误,请联系管理员!!!('.$tandem_res['msg'].')']);//结算错误
  43. }
  44. }elseif(count($str_ids)>0 && count($simplex_ids)>0){
  45. //既有单式又有串式
  46. $huawei_res = $napp->simplexs($token,$match_id,$jsurl,'zq');
  47. //串式结算
  48. $tandem_res = $napp->tandems($token,$match_id,$jsurl,'zq');
  49. if($tandem_res['status']==1 && $huawei_res['status']==1){
  50. return json_encode(['status'=>1,'msg'=>'结算成功']);
  51. }elseif($tandem_res['status']!=1 || $huawei_res['status']!=1){
  52. return json_encode(['status'=>3,'msg'=>'结算有误,请联系管理员!!!('.$tandem_res['msg'].$huawei_res['msg'].')']);
  53. }else{
  54. return json_encode(['status'=>3,'msg'=>'返回参数不对']);
  55. }
  56. }
  57. }else{
  58. return json_encode(['status'=>2,'msg'=>'判断输赢错误,请联系管理员!!!']);;//输赢错误
  59. }
  60. }else{
  61. $res = \App\Models\Stzqresult::where ('match_id', $match_id)->update(['status' =>3]);
  62. $res = \App\Models\SportsSoccer::where ('match_id', $match_id)->update(['status' =>3]);
  63. return json_encode(['status'=>4,'msg'=>'该赛事没有任何订单,将会结束该赛事!!!']);
  64. }
  65. }
  66. //添加危险球列表
  67. function addwarn(Req $req){
  68. $match_id = $req->match_id;
  69. $warn = \App\Models\Stzqresult::where('match_id', $match_id)->select("warn_more")->first();
  70. $request['warnmore'] = json_decode($warn['warn_more'],true);
  71. // $sousuo = $req->sousuo;
  72. // if($sousuo){
  73. // for ($i=0; $i < count($request['warnmore']); $i++) {
  74. // if($request['warnmore'][$i]['rtype']==$sousuo){
  75. // $array[$i]['timei'] = $request['warnmore'][$i]['timei'];
  76. // $array[$i]['rtype'] = $request['warnmore'][$i]['rtype'];
  77. // }
  78. // // unset($array2D[2]);//删除
  79. // }
  80. // $request['warnmore'] = $array;
  81. // }
  82. $request['match_id'] = $match_id;
  83. return view('admin.sportsfoot/addwarn', $request);
  84. }
  85. //危险球查询
  86. function warnresult(Req $req){
  87. $match_id = $req->match_id;
  88. $wid = $req->wid;
  89. $warnonlys = \App\Models\Stzqresult::where('match_id', $match_id)->select("warn_more","start_time")->first();
  90. $warno = array(
  91. 'warn_more' => json_decode($warnonlys['warn_more'],true),
  92. 'starttime' => $warnonlys['start_time'],
  93. );
  94. return $warno;
  95. }
  96. //添加编辑危险球
  97. function addwarnonly(Req $req){
  98. $matchid = $req->matchid;
  99. $wid = $req->wid;//编辑对象值
  100. $timei = $req->timei?$req->timei:"1970-11-1 0:0:1";
  101. $rtype = $req->warntype?$req->warntype:0;
  102. $typenum = $req->typenum;
  103. $model = \App\Models\Stzqresult::where('match_id', $matchid)->select("warn_more","start_time")->first()->toArray();
  104. $sel = json_decode($model['warn_more'],true);
  105. $addru = array(
  106. array(
  107. 'timei'=>$timei,
  108. 'rtype'=>$rtype,
  109. ),
  110. );
  111. $only =$model['start_time'];
  112. $t = strtotime($only);
  113. $tt = date('Y-m-d H:i:s', $t+1*3*60*60);
  114. if($only<$timei && $timei<$tt){
  115. if($typenum==10000){
  116. if($sel[0]['rtype']==0){
  117. //首次添加
  118. $res = \App\Models\Stzqresult::where ('match_id', $matchid)->update(['warn_more' => json_encode($addru)]);
  119. }else{
  120. //再次添加
  121. $upnum = array_merge_recursive($sel,$addru);
  122. $res = \App\Models\Stzqresult::where ('match_id', $matchid)->update(['warn_more' => json_encode($upnum)]);
  123. }
  124. }else{
  125. //编辑
  126. for ($i=0; $i < count($sel); $i++) {
  127. $sel[$wid]['timei'] = $timei;
  128. $sel[$wid]['rtype'] = $rtype;
  129. }
  130. $res = \App\Models\Stzqresult::where ('match_id', $matchid)->update(['warn_more' => json_encode($sel)]);
  131. }
  132. }else{
  133. return json_encode(['status'=>2,'msg'=>'请设置正确时间']);
  134. }
  135. return responseToJson(1);
  136. }
  137. //足球结果列表
  138. function outcome(Req $req) {
  139. $request=array();
  140. $request['home_team'] = isset($req->home_team) ? trim($req->home_team) : null;
  141. $request['status'] = isset($req->status) ? trim($req->status) : '-1';
  142. $request['sureblurs'] = isset($req->sureblurs) ? $req->sureblurs : 'on';
  143. $request['star_time'] = isset($req->star_time) ? trim($req->star_time) :trans('status.default_time.seven_day') ;
  144. $request['end_time'] = isset($req->end_time) ? trim($req->end_time) : trans('status.default_time.etime');
  145. $newapp = new \App\Models\SoccerLeague();
  146. $data = $newapp->allleague();
  147. $request['league'] = $data;//联赛id
  148. $request['token'] = session('adminInfo.token');//token 变量
  149. $dt = \App\Lib\DataTable\DataTable::init();
  150. $dt->setDataSource('/admin/sportsfoot/outcomeinfo');
  151. $dt->setLang('sportsfoot');
  152. $dt->addColsFields('newtime', array('templet' => '#newtime', 'sort' => false, 'width' => 200));
  153. $dt->addColsFields('totime', array('templet' => '#totime', 'sort' => false, 'width' => 80));
  154. $dt->addColsFields('home_team', array('templet' => '#userdetail', 'sort' => false, 'width' => 80));
  155. $dt->addColsFields('guest_team', array('templet' => '#userdetail', 'sort' => false, 'width' => 70));
  156. $dt->addColsFields('dsnum', array('templet' => '#dsnum', 'sort' => false, 'width' => 70));
  157. $dt->addColsFields('csnum', array('templet' => '#csnum', 'sort' => false, 'width' => 110));
  158. $dt->addColsFields('sxalfcourt', array('templet' => '#sxalfcourt', 'sort' => false, 'width' => 300));
  159. $dt->addColsFields('statusmatch', array('templet' => '#statusmatch', 'sort' => false, 'width' => 150,'align' => 'left'));
  160. $dt->addColsFields('operation', array('templet' => '#status', 'sort' => false, 'width' => 300));
  161. // $arr[] = 'view';
  162. // if (checkRriv('/admin/sportsfoot/edit')) {
  163. // $arr[] = 'edit';
  164. // }
  165. // $dt->setToolBar($arr, array('width' => 200));
  166. $dt->enableCheckBox();
  167. return view('admin.sportsfoot/outcome', $dt->render($request));
  168. }
  169. //结果添加
  170. function addend(Req $req){
  171. $match_id = $req->matchid;
  172. $model = \App\Models\Stzqresult::where('match_id', $match_id)->first();
  173. $penaltycard = array(
  174. 'home'=>intval($req->homeallcard)?intval($req->homeallcard):0,
  175. 'guest'=>intval($req->guestallcard)?intval($req->guestallcard):0,
  176. 'home_half'=>intval($req->homehalfcard)?intval($req->homehalfcard):0,
  177. 'guest_half'=>intval($req->guesthalfcard)?intval($req->guesthalfcard):0,
  178. );
  179. $cornerball = array(
  180. 'home'=>intval($req->homeallcorner)?intval($req->homeallcorner):0,
  181. 'guest'=>intval($req->guestallcorner)?intval($req->guestallcorner):0,
  182. 'home_half'=>intval($req->homehalfcorner)?intval($req->homehalfcorner):0,
  183. 'guest_half'=>intval($req->guesthalfcorner)?intval($req->guesthalfcorner):0,
  184. );
  185. $firstone = array(
  186. 'teamscore'=>$req->firstscore ? $req->firstscore:0,
  187. 'scoretime'=>intval($req->onescoretime)?intval($req->onescoretime):0,
  188. 'scoretype'=>$req->firststye ? $req->firststye:0,
  189. );
  190. $model->last_score = $req->lastscore?$req->lastscore:'';
  191. $model->match_winer = $req->matchwiner?$req->matchwiner:'';
  192. $model->penalty_card = json_encode($penaltycard,JSON_UNESCAPED_UNICODE);
  193. $model->corner_ball = json_encode($cornerball,JSON_UNESCAPED_UNICODE);
  194. $model->first_score = json_encode($firstone,JSON_UNESCAPED_UNICODE );
  195. $model->save();
  196. return responseToJson(1);
  197. }
  198. //查询赛事结果
  199. function Matchresult(Req $req){
  200. $match_id = $req->match_id;
  201. $newapp = \App\Models\Stzqresult::where('match_id', $match_id)->first();
  202. $array =array(
  203. 'corner_ball' => json_decode($newapp['corner_ball'],true),
  204. 'penalty_card' => json_decode($newapp['penalty_card'],true),
  205. 'first_score' => json_decode($newapp['first_score'],true),
  206. 'newapp' => $newapp,
  207. );
  208. return $array;
  209. }
  210. function onlyresult(Req $req){
  211. $match_id = $req->matchid;
  212. $newapp = \App\Models\Stzqresult::where('match_id', $match_id)->first();
  213. return $newapp;
  214. }
  215. //作废
  216. function revokeft(Req $req){
  217. $iszf = $req->iszf?$req->iszf:'';//赛事id
  218. if(intval($iszf)){
  219. $id = $req->input('id');
  220. if (empty($id)) {
  221. return responseToJson(-2001); //
  222. }
  223. $ids = explode(',', $id);
  224. if (!is_array($ids) && intval($ids) < 0) {
  225. return responseToJson(-2002); //
  226. }
  227. if (is_array($ids) && count($ids) > 0) {
  228. foreach ($ids as $k => $v) {
  229. if (intval($v) < 1) {
  230. unset($ids[$k]);
  231. }
  232. }
  233. }
  234. for ($ii=0; $ii < count($ids); $ii++) {
  235. $model = \App\Models\Stzqresult::where('id', $ids[$ii])->first();
  236. $model->status = 4;
  237. $model->save();
  238. $ssid = $model['match_id'];//赛事id
  239. $smodel = \App\Models\SportsSoccer::where('match_id', $ssid)->first();
  240. if($smodel){
  241. $smodel->status = 4;
  242. $smodel->save();
  243. }
  244. $upapp = new \App\Models\SportsNoteList();
  245. $data = $upapp->updatesimplex($ssid,'zq');//修改单式状态
  246. //单式撤单返现
  247. $newapp = new \App\Models\MoneyBuyMatch();
  248. $all = $newapp->allsimplexorder($ssid,'zq');
  249. for ($i=0; $i < count($all); $i++) {
  250. $appgx = new \App\Lib\Settlement\SettlementOrder();
  251. $appgx->insertData($all[$i]['order_id'], $all[$i]['money'], $all[$i]['account_identity'], '1', 'zq', $all[$i]['info_identity'], $all[$i]['money'],$all[$i]['match_id']);
  252. }
  253. //串式撤单只改状态
  254. $str_ids = array_column($newapp->allstrorder($ssid),'order_id');
  255. $csapp = new \App\Models\MoneyBuyStr();
  256. $csapp->updatestatus($str_ids);//var_dump($ss);die;
  257. //修改money_buy_match 投注结果result=2为平
  258. $newapp->updatast($ssid);
  259. }
  260. return responseToJson(1);
  261. }else{
  262. $match_id = $req->match_id;//赛事id
  263. $model = \App\Models\Stzqresult::where('match_id', $match_id)->first();
  264. $model->status = 4;
  265. $model->save();
  266. $smodel = \App\Models\SportsSoccer::where('match_id', $match_id)->first();
  267. if($smodel){
  268. $smodel->status = 4;
  269. $smodel->save();
  270. }
  271. $upapp = new \App\Models\SportsNoteList();
  272. $data = $upapp->updatesimplex($match_id,'zq');//修改单式状态
  273. //单式撤单返现
  274. $newapp = new \App\Models\MoneyBuyMatch();
  275. $all = $newapp->allsimplexorder($match_id,'zq');
  276. for ($i=0; $i < count($all); $i++) {
  277. $appgx = new \App\Lib\Settlement\SettlementOrder();
  278. $appgx->insertData($all[$i]['order_id'], $all[$i]['money'], $all[$i]['account_identity'], '1', 'zq', $all[$i]['info_identity'], $all[$i]['money'],$all[$i]['match_id']);
  279. }
  280. //串式撤单只改状态
  281. $str_ids = array_column($newapp->allstrorder($match_id),'order_id');
  282. $csapp = new \App\Models\MoneyBuyStr();
  283. $csapp->updatestatus($str_ids);//var_dump($ss);die;
  284. //修改money_buy_match 投注结果result=2为平
  285. $newapp->updatast($match_id);
  286. return responseToJson(1);
  287. }
  288. }
  289. //赛事结果修改
  290. function edit(Req $req) {
  291. $id = $req->id;
  292. if (intval($id) < 1) {
  293. return -1;
  294. }
  295. if (!$req->isMethod('post')) {
  296. $data = \App\Models\Stzqresult::where('id', $id)->first();
  297. if (!$data) {
  298. return -2;
  299. }
  300. $data = $data->toArray();
  301. return view('admin.sportsfoot/edit', $data);
  302. } else {
  303. $model = \App\Models\Stzqresult::where('id', $id)->first();
  304. $model->home_team = $req->input('home_team');
  305. $model->guest_team = $req->input('guest_team');
  306. $model->home_rate = $req->input('home_rate');
  307. $model->guest_rate = $req->input('guest_rate');
  308. $model->status = $req->input('status');
  309. //$model->update_time = time();
  310. $model->save();
  311. return responseToJson(1);
  312. }
  313. }
  314. function outcomeinfo() {
  315. $page = Request::has('page') ? Request::get('page') : '';
  316. $list = Request::has('limit') ? Request::get('limit') : 10;
  317. $home_team = Request::has('home_team') ? Request::get('home_team') : '';
  318. $sureblur = Request::has('sureblurs') ? Request::get('sureblurs') : 'off';
  319. $status = Request::has('status') ? Request::get('status') : '';
  320. $star_time = Request::get('star_time') ? Request::get('star_time').' 00:00:00' : '';
  321. $end_time = Request::get('end_time') ? Request::get('end_time').' 23:59:59' : '';
  322. $where = array();
  323. $orwhere = array();
  324. if (!empty($home_team)) {
  325. if (empty($sureblur) || $sureblur == 'off') {
  326. $where[] = array('st_zq_result.home_team', 'like', '%' . $home_team . '%');
  327. $orwhere[] = array('st_zq_result.guest_team', 'like', '%' . $home_team . '%');
  328. } else {
  329. if(is_numeric($home_team)){
  330. $where[] = array('st_zq_result.match_id', '=', $home_team);
  331. }else{
  332. $where[] = array('st_zq_result.home_team', '=', $home_team);
  333. $orwhere[] = array('st_zq_result.guest_team', '=', $home_team);
  334. }
  335. }
  336. }
  337. if ($status != -1) {
  338. $where[] = array('st_zq_result.status', '=', $status);
  339. $orwhere[] = array('st_zq_result.status', '=', $status);
  340. }
  341. if(!is_numeric($home_team)){
  342. if (!empty($star_time)) {
  343. $star_time = date('Y-m-d H:i:s', strtotime($star_time));
  344. $where[] = array('st_zq_result.start_time', '>', $star_time);
  345. $orwhere[] = array('st_zq_result.start_time', '>', $star_time);
  346. }
  347. if (!empty($end_time)) {
  348. $end_time = date('Y-m-d H:i:s', strtotime($end_time));
  349. $where[] = array('st_zq_result.start_time', '<', $end_time);
  350. $orwhere[] = array('st_zq_result.start_time', '<', $end_time);
  351. }
  352. }
  353. $newapp = new \App\Models\Stzqresult();
  354. $data = $newapp->resultlist($list, $page, $where, $orwhere);
  355. return \App\Lib\DataTable\DataTable::init()->toJson($data['data'], $data['total']);
  356. }
  357. function saislist(Req $req){
  358. $lgid = $req->lgid;//赛事id
  359. $newstzqcompetition = new \App\Models\Stzqcompetition();
  360. $league_data = $newstzqcompetition->allcompetition($lgid);//赛事id
  361. return $league_data;
  362. }
  363. //赛事结果添加 guest_score 客队进球 all_goal总进球数
  364. function addoutcome(Req $req) {
  365. if (!$req->isMethod('post')) {
  366. $lange = trans('menu');
  367. $newapp = new \App\Models\SoccerLeague();
  368. $league_data = $newapp->allleague();//联赛id
  369. return view('admin.sportsfoot/addoutcome',['data'=>$league_data]);
  370. } else {
  371. $match_id = trim($req->input('match_id'));//赛事id
  372. //添加足球比赛结果表
  373. $alldata = $req->input();
  374. unset($alldata['_token']);
  375. $all_goal = intval($alldata['home_score'])+intval($alldata['guest_score']);//总进球数
  376. $penaltycard = array(
  377. 'home'=>intval($alldata['homeallcard'])?intval($alldata['homeallcard']):0,
  378. 'guest'=>intval($alldata['guestallcard'])?intval($alldata['guestallcard']):0,
  379. 'home_half'=>intval($alldata['homehalfcard'])?intval($alldata['homehalfcard']):0,
  380. 'guest_half'=>intval($alldata['guesthalfcard'])?intval($alldata['guesthalfcard']):0,
  381. );
  382. $cornerball = array(
  383. 'home'=>intval($alldata['homeallcorner'])?intval($alldata['homeallcorner']):0,
  384. 'guest'=>intval($alldata['guestallcorner'])?intval($alldata['guestallcorner']):0,
  385. 'home_half'=>intval($alldata['homehalfcorner'])?intval($alldata['homehalfcorner']):0,
  386. 'guest_half'=>intval($alldata['guesthalfcorner'])?intval($alldata['guesthalfcorner']):0,
  387. );
  388. $ret = \App\Models\Stzqresult::updateOrCreate(['match_id'=>$match_id],array_merge($alldata,['match_time'=>'00:01','update_time'=>date('Y-m-d H:i:s'),'all_goal'=>$all_goal,'penalty_card'=>json_encode($penaltycard),'corner_ball'=>json_encode($cornerball)]));
  389. //添加足球比赛结果记录表
  390. \App\Models\Stzqresultrecord::updateOrCreate(['match_id'=>$match_id,'update_time'=>date('Y-m-d H:i:s')],array_merge($alldata,['match_time'=>'00:01','update_time'=>date('Y-m-d H:i:s')]));
  391. }
  392. return responseToJson(1);
  393. }
  394. //删除赛事结果
  395. function deleteoutcome(Req $req) {
  396. $id = $req->input('id');
  397. if (empty($id)) {
  398. return responseToJson(-2001); //
  399. }
  400. $ids = explode(',', $id);
  401. if (!is_array($ids) && intval($ids) < 0) {
  402. return responseToJson(-2002); //
  403. }
  404. if (is_array($ids) && count($ids) > 0) {
  405. foreach ($ids as $k => $v) {
  406. if (intval($v) < 1) {
  407. unset($ids[$k]);
  408. }
  409. }
  410. }
  411. $rows = \App\Models\Stzqresult::whereIn('id', $ids)->delete();
  412. if (!$rows) {
  413. return responseToJson(-2003);
  414. }
  415. return responseToJson(1);
  416. }
  417. //更新赛事比分
  418. function updatenum(Req $req){
  419. $type = $req->type;
  420. $id = $req->id;
  421. $num = $req->num;
  422. $match_id = $req->match_id;
  423. $newapp = new \App\Models\Stzqresult();
  424. if($type==1){
  425. $data['u_home_score'] = $num;
  426. $res = $newapp->updateInfo($data,$id);//联赛id
  427. }else if($type==2){
  428. $data['u_guest_score'] = $num;
  429. $res = $newapp->updateInfo($data,$id);//联赛id
  430. }else if($type==3){
  431. $data['home_score'] = $num;
  432. $res = $newapp->updateInfo($data,$id);//联赛id
  433. }else{
  434. $data['guest_score'] = $num;
  435. $res = $newapp->updateInfo($data,$id);//联赛id
  436. }
  437. $newapp->totalgoal($match_id);
  438. $update = $this->addcomendnotice($match_id);
  439. $twoapp = new \App\Models\SportsSoccer();
  440. $twoapp->updatestatus('match_id',$match_id,['status'=>2]);//修改赛事状态
  441. $newapp->updatestatus('match_id',$match_id,['status'=>2]);//修改结果状态
  442. return responseToJson(1);
  443. }
  444. //添加赛事结束纪录
  445. function addcomendnotice($match_id){
  446. $data = \App\Models\Comendnotice::where(['match_id'=>$match_id,'game_code'=>'zq'])->first();
  447. if(!$data){
  448. $model = new \App\Models\Comendnotice();
  449. $model->status = 0;//联赛id
  450. $model->game_code = 'zq';
  451. $model->match_id = $match_id;//赛事id
  452. $model->ctime = date('Y-m-d H:i:s');
  453. $model->save();
  454. }
  455. return responseToJson(1);
  456. }
  457. }