SportsbkController.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  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. use App\Lib\Biz\Sport\Common as commonFunction;
  10. /**
  11. *篮球结果结算
  12. */
  13. class SportsbkController extends Controller {
  14. public $code = "lq";
  15. //篮球结果列表
  16. public function outcome(Req $req) {
  17. $request['home_team'] = isset($req->home_team) ? trim($req->home_team) : null;
  18. $request['status'] = isset($req->status) ? trim($req->status) : '-1';
  19. $request['sureblurs'] = isset($req->sureblurs) ? $req->sureblurs : 'on';
  20. $request['star_time'] = isset($req->star_time) ? trim($req->star_time) :trans('status.default_time.seven_day') ;
  21. $request['end_time'] = isset($req->end_time) ? trim($req->end_time) : trans('status.default_time.etime');
  22. $dt = \App\Lib\DataTable\DataTable::init();
  23. $dt->setDataSource('/admin/Sportsbk/info');
  24. $dt->setLang('sportsbk');
  25. $dt->addColsFields('lg_id', array('templet' => '#liansai', 'sort' => true, 'width' => 160));
  26. $dt->addColsFields('start_time', array('templet' => '#userdetail', 'sort' => true, 'width' => 160));
  27. $dt->addColsFields('home_team', array('templet' => '#userdetail', 'sort' => false, 'width' => 100));
  28. $dt->addColsFields('guest_team', array('templet' => '#userdetail', 'sort' => false, 'width' => 100));
  29. $dt->addColsFields('dsnum', array('templet' => '#dsnum', 'sort' => false, 'width' => 70));
  30. $dt->addColsFields('csnum', array('templet' => '#csnum', 'sort' => false, 'width' => 70));
  31. $dt->addColsFields('sectionone_two', array('templet' => '#sectionone_two', 'sort' => false, 'width' => 170));
  32. $dt->addColsFields('sectionthere_four', array('templet' => '#sectionthere_four', 'sort' => false, 'width' => 220));
  33. $dt->addColsFields('status', array('templet' => '#matchstatus', 'sort' => false, 'width' => 80));
  34. $dt->addColsFields('operation', array('templet' => '#operation', 'sort' => false, 'width' => 300));
  35. $dt->enableCheckBox();
  36. // if (checkRriv('/admin/Sportsbk/edit')) {
  37. // $arr[] = 'edit';
  38. // }
  39. // $dt->setToolBar($arr, array('width' => 200));
  40. // $dt->enableCheckBox();
  41. return view('admin/sportsbk/outcome', $dt->render($request));
  42. }
  43. //篮球赛事作废
  44. function revoke(Req $req){
  45. $match_id = $req->match_id;//赛事id
  46. \App\Models\Stlqresult::where('match_id', $match_id)->update(['status'=>4]);
  47. \App\Models\SportsBasket::where('id', $match_id)->update(['status'=>4]);
  48. //赛事下单式注单作废,串关注单下此赛事按平局处理
  49. $upapp = new \App\Models\SportsNoteList();
  50. $upapp->delorder($match_id,'lq');
  51. // $upapp = new \App\Models\SportsNoteList();
  52. // $data = $upapp->updatesimplex($match_id,$this->code);//修改单式状态
  53. //
  54. // //单式撤单返现
  55. // $newapp = new \App\Models\MoneyBuyMatch();
  56. // $all = $newapp->allsimplexorder($match_id,$this->code);
  57. // for ($i=0; $i < count($all); $i++) {
  58. // $appgx = new SettlementOrder();
  59. // $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']);
  60. // }
  61. //
  62. // //串式撤单只改状态
  63. // $str_ids = array_column($newapp->allstrorder($match_id),'order_id');
  64. // $csapp = new \App\Models\MoneyBuyStr();
  65. // $csapp->updatestatus($str_ids);
  66. // //修改money_buy_match 投注结果result=2为平
  67. // $newapp->updatast($match_id);
  68. return responseToJson(1);
  69. }
  70. //结果添加
  71. function addend(Req $req){
  72. $match_id = $req->matchid;
  73. $model = \App\Models\Stlqresult::where('match_id', $match_id)->first();
  74. $match = \App\Models\SportsBasket::where('id', $match_id)->first();
  75. $match_status = $match['status'];
  76. $data = array(
  77. "1" => array(
  78. 'home' => intval($req->homeo)?intval($req->homeo):0,
  79. 'guest' => intval($req->guesto)?intval($req->guesto):0,
  80. ),
  81. "2" => array(
  82. 'home' => intval($req->homet)?intval($req->homet):0,
  83. 'guest' => intval($req->guestt)?intval($req->guestt):0,
  84. ),
  85. "3" => array(
  86. 'home' => intval($req->homes)?intval($req->homes):0,
  87. 'guest' => intval($req->guests)?intval($req->guests):0,
  88. ),
  89. "4" => array(
  90. 'home' => intval($req->homef)?intval($req->homef):0,
  91. 'guest' => intval($req->guestf)?intval($req->guestf):0,
  92. ),
  93. "5" => array(
  94. 'home' => intval($req->homeu)?intval($req->homeu):0,
  95. 'guest' => intval($req->guestu)?intval($req->guestu):0,
  96. ),
  97. "6" => array(
  98. 'home' => intval($req->homeb)?intval($req->homeb):0,
  99. 'guest' => intval($req->guestb)?intval($req->guestb):0,
  100. ),
  101. "all" => array(
  102. 'home' => intval($req->homen)?intval($req->homen):0,
  103. 'guest' => intval($req->guestn)?intval($req->guestn):0,
  104. ),
  105. );
  106. $guestscore =array(
  107. '1' => $data[1]['guest'],//第一节客队比分
  108. '2' => $data[2]['guest'],//第二节客队比分
  109. '3' => $data[3]['guest'],//第三节客队比分
  110. '4' => $data[4]['guest'],//第四节客队比分
  111. '5' => $data[5]['guest'],//上半场客队比分
  112. '6' => $data[6]['guest'],//下半场客队比分
  113. 'all' => $data["all"]['guest'],//全场客队比分
  114. );
  115. $homescore =array(
  116. '1' => $data[1]['home'],//第一节客队比分
  117. '2' => $data[2]['home'],//第二节客队比分
  118. '3' => $data[3]['home'],//第三节客队比分
  119. '4' => $data[4]['home'],//第四节客队比分
  120. '5' => $data[5]['home'],//上半场客队比分
  121. '6' => $data[6]['home'],//下半场客队比分
  122. 'all' => $data["all"]['home'],//全场客队比分
  123. );
  124. //赛事下注单作废 处理
  125. if(in_array(-1,$guestscore) || in_array(-1,$homescore)){
  126. commonFunction::HandleInvalid($data,$match_id,$match_status,'lq');
  127. }
  128. // \App\Models\Stlqresult::where('match_id', $match_id)->update(["home_score"=>json_encode($homescore),"guest_score"=>json_encode($guestscore)]);
  129. \App\Models\Stlqresult::where('match_id', $match_id)->update(["inning"=>json_encode($data)]);
  130. //添加赛事结果记录
  131. $lastLog = \App\Models\Stlqresultlog::where([
  132. ['match_id', $match_id],
  133. ['type', 1]
  134. ])->orderBy('id', 'asc')->first();
  135. if(empty($lastLog) || $lastLog['inning'] != json_encode($data)){
  136. \App\Models\Stlqresultlog::insert([
  137. 'match_id' => $match_id,
  138. 'inning' => json_encode($data),
  139. 'user_id' => session('adminInfo.admin_id'),
  140. 'type' => 1,
  141. 'create_at' => now()
  142. ]);
  143. }
  144. return responseToJson(1);
  145. }
  146. //查询赛事结果
  147. function Matchresult(Req $req){
  148. $match_id = $req->match_id;
  149. $newapp = \App\Models\Stlqresult::where('match_id', $match_id)->first();
  150. // $array =array(
  151. // 'corner_ball' => json_decode($newapp['corner_ball'],true),
  152. // 'penalty_card' => json_decode($newapp['penalty_card'],true),
  153. // 'newapp' => $newapp,
  154. // );
  155. $array =array(
  156. 'lqresult' => json_decode($newapp['inning'],true),
  157. );
  158. return $array;
  159. }
  160. //查询赛事结果记录
  161. function resultLog(Req $req){
  162. $match_id = $req->match_id;
  163. $list = \App\Models\Stlqresultlog::leftJoin('system_user', 'user_id', '=', 'system_user.id')
  164. ->select('st_lq_result_log.*', 'system_user.loginname')->where('match_id', $match_id)->orderBy('id', 'asc')->get();
  165. foreach ($list as $key=>$value){
  166. // $list[$key]['home_score'] = json_decode($value['home_score'], true);
  167. // $list[$key]['guest_score'] = json_decode($value['guest_score'], true);
  168. $list[$key]['inning'] = json_decode($value['inning'], true);
  169. }
  170. $result =array(
  171. 'status' => 200,
  172. 'list' => $list
  173. );
  174. echo json_encode($result);die;
  175. }
  176. //结算
  177. function Settlementlq(Req $req){
  178. $jsurl = config('sconstant.url');//结算请求域名地址
  179. $match_id = $req->match_id;
  180. $type = $req->type;
  181. $token = session('adminInfo.token');
  182. $notice = \App\Models\Comendnotice::where('match_id', $match_id)->first();
  183. $noticeid = $notice['id'];
  184. if(!$notice){
  185. return json_encode(['status'=>5,'msg'=>'请先核对结果,并提交结果']);
  186. }
  187. //查询赛事单式是否有订单(篮球)
  188. $newapp = new \App\Models\MoneyBuyMatch();
  189. $simplex_ids = array_column($newapp->allsimplexorder($match_id,'lq'),'order_id');
  190. $str_ids = array_column($newapp->allstrorder($match_id),'order_id');
  191. if(count($simplex_ids)>0 || count($str_ids)>0){
  192. $requet = file_get_contents($jsurl."/WinFail?noticeid=".$noticeid."&token=".$token);
  193. if(json_decode($requet,true)['status']==1){
  194. $napp = new \App\Models\Stzqresult();
  195. //单式结算
  196. if(count($simplex_ids)>0 && count($str_ids)==0){
  197. $huawei_res = $napp->simplexs($token,$match_id,$jsurl,'lq');
  198. if($huawei_res['status']==1){
  199. return json_encode(['status'=>1,'msg'=>'单式结算成功,没有串式订单']);
  200. }else{
  201. return json_encode(['status'=>3,'msg'=>'单式结算有误,请联系管理员!!!('.$huawei_res['msg'].')']);//结算错误
  202. }
  203. }elseif(count($str_ids)>0 && count($simplex_ids)==0){
  204. //串式结算
  205. $tandem_res = $napp->tandems($token,$match_id,$jsurl,'lq');
  206. if($tandem_res['status']==1){
  207. return json_encode(['status'=>1,'msg'=>'串式结算成功,没有单式订单']);
  208. }else{
  209. return json_encode(['status'=>3,'msg'=>'串式结算有误,请联系管理员!!!('.$tandem_res['msg'].')']);//结算错误
  210. }
  211. }elseif(count($str_ids)>0 && count($simplex_ids)>0){
  212. //既有单式又有串式
  213. $huawei_res = $napp->simplexs($token,$match_id,$jsurl,'lq');
  214. //串式结算
  215. $tandem_res = $napp->tandems($token,$match_id,$jsurl,'lq');
  216. if($tandem_res['status']==1 && $huawei_res['status']==1){
  217. return json_encode(['status'=>1,'msg'=>'结算成功']);
  218. }elseif($tandem_res['status']!=1 || $huawei_res['status']!=1){
  219. return json_encode(['status'=>3,'msg'=>'结算有误,请联系管理员!!!('.$tandem_res['msg'].$huawei_res['msg'].')']);
  220. }else{
  221. return json_encode(['status'=>3,'msg'=>'返回参数不对']);
  222. }
  223. }
  224. }else{
  225. return json_encode(['status'=>2,'msg'=>'判断输赢错误,请联系管理员!!!']);;//输赢错误
  226. }
  227. }else{
  228. $res = \App\Models\Stlqresult::where ('match_id', $match_id)->update(['status' =>3]);
  229. $res = \App\Models\SportsBasket::where ('match_id', $match_id)->update(['status' =>3]);
  230. return json_encode(['status'=>4,'msg'=>'该赛事没有任何订单,将会结束该赛事!!!']);
  231. }
  232. }
  233. function info() {
  234. $page = Request::has('page') ? Request::get('page') : '';
  235. $list = Request::has('limit') ? Request::get('limit') : 1;
  236. $home_team = Request::has('home_team') ? Request::get('home_team') : '';
  237. $sureblurs = Request::has('sureblurs') ? Request::get('sureblurs') : 'off';
  238. $star_time = Request::get('star_time') ? Request::get('star_time').' 00:00:00' : '';
  239. $end_time = Request::get('end_time') ? Request::get('end_time').' 23:59:59' : '';
  240. $status = Request::has('status') ? Request::get('status') : '';
  241. $where = array();
  242. $orwhere = array();
  243. if (!empty($home_team)) {
  244. if (empty($sureblurs) || $sureblurs == 'off') {
  245. $where[] = array('st_lq_result.home_team', 'like', '%' . $home_team . '%');
  246. $orwhere[] = array('st_lq_result.guest_team', 'like', '%' . $home_team . '%');
  247. } else {
  248. if(is_numeric($home_team)){
  249. $where[] = array('st_lq_result.match_id', '=', $home_team);
  250. $orwhere[] = array('st_lq_result.match_id', '=', $home_team);
  251. }else{
  252. $where[] = array('st_lq_result.home_team', '=', $home_team);
  253. $orwhere[] = array('st_lq_result.guest_team', '=', $home_team);
  254. }
  255. }
  256. }
  257. if (!empty($star_time) and empty($home_team)) {
  258. $star_time = date('Y-m-d H:i:s', strtotime($star_time));
  259. $where[] = array('st_lq_result.start_time', '>', $star_time);
  260. $orwhere[] = array('st_lq_result.start_time', '>', $star_time);
  261. }
  262. if (!empty($end_time) and empty($home_team)) {
  263. $end_time = date('Y-m-d H:i:s', strtotime($end_time));
  264. $where[] = array('st_lq_result.start_time', '<', $end_time);
  265. $orwhere[] = array('st_lq_result.start_time', '<', $end_time);
  266. }
  267. if ($status != -1) {
  268. $where[] = array('st_lq_competition.status', '=', $status);
  269. $orwhere[] = array('st_lq_competition.status', '=', $status);
  270. }
  271. $newapp = new \App\Models\Stlqresult();
  272. $data = $newapp->resultbklist($list, $page, $where, $orwhere);
  273. for ($i=0; $i < count($data['data']); $i++) {
  274. $home_score = json_decode($data['data'][$i]['home_score'],true);
  275. $guest_score = json_decode($data['data'][$i]['guest_score'],true);
  276. $data['data'][$i]['okteamscore'] = $guest_score[1];//第一节客队比分
  277. $data['data'][$i]['ozteamscore'] = $home_score[1];//第一节主队比分
  278. $data['data'][$i]['tkteamscore'] = $guest_score[2];//第二节客队比分
  279. $data['data'][$i]['tzteamscore'] = $home_score[2];//第二节主队比分
  280. $data['data'][$i]['skteamscore'] = $guest_score[3];//第三节客队比分
  281. $data['data'][$i]['szteamscore'] = $home_score[3];//第三节主队比分
  282. $data['data'][$i]['akteamscore'] = $guest_score[4];//第四节客队比分
  283. $data['data'][$i]['azteamscore'] = $home_score[4];//第四节主队比分
  284. }
  285. return \App\Lib\DataTable\DataTable::init()->toJson($data['data'], $data['total']);
  286. }
  287. //修改添加赛事比分
  288. function updatascore(Req $req){
  289. $match_id = $req->match_id;//节数唯一标识
  290. $model = \App\Models\Stlqresult::where('match_id', $match_id)->first();
  291. $model->update_time = date('Y-m-d H:i:s');
  292. //赛事状态
  293. $match_status = intval($req->match_status)?intval($req->match_status):0;
  294. $guestscore =array(
  295. '1' => intval($req->okteamscore)?intval($req->okteamscore):0,//第一节客队比分
  296. '2' => intval($req->tkteamscore)?intval($req->tkteamscore):0,//第二节客队比分
  297. '3' => intval($req->skteamscore)?intval($req->skteamscore):0,//第三节客队比分
  298. '4' => intval($req->akteamscore)?intval($req->akteamscore):0,//第四节客队比分
  299. );
  300. $homescore =array(
  301. '1' => intval($req->ozteamscore)?intval($req->ozteamscore):0,//第一节主队比分
  302. '2' => intval($req->tzteamscore)?intval($req->tzteamscore):0,//第二节主队比分
  303. '3' => intval($req->szteamscore)?intval($req->szteamscore):0,//第三节主队比分
  304. '4' => intval($req->azteamscore)?intval($req->azteamscore):0,//第四节主队比分
  305. );
  306. $model->guest_score = json_encode($guestscore);
  307. $model->home_score = json_encode($homescore);
  308. $model->is_correct = 1;//追加手动更改标识
  309. $model->save();
  310. //更新比分 默认 status
  311. $status = 2;
  312. //赛事下注单作废 处理
  313. $data = array_merge($guestscore,$homescore);
  314. if(in_array(-1,$data)){
  315. commonFunction::HandleInvalid($data,$match_id,$match_status,'lq');
  316. }
  317. /*
  318. //追加判断比分 如果都== -1,则作废该赛事
  319. if($guestscore[1] < 0 and $guestscore[2] < 0 and $guestscore[3] < 0 and $guestscore[4] < 0 and $homescore[1] < 0 and $homescore[2] < 0 and $homescore[3] < 0 and $homescore[4] < 0 ){
  320. //已结算作废赛事处理
  321. if($match_status == 3){
  322. $url = 'http://stadmin.bocai108.com:9094/UnSettelement';
  323. $data_up = [
  324. 'token'=>session('adminInfo.token'),
  325. 'game_code'=>'lq',
  326. 'match_id'=>$match_id,
  327. ];
  328. $ret_json = commonFunction::https_request($url,$data_up);
  329. // $ret_json = '{"status":1,"msg":"撤销成功!2019-10-26 16:28:30 取消赛事处理--结束end:game_code= zq match_id= 40986 \n","data":[]}';
  330. $ret_arr = json_decode($ret_json,true);
  331. if($ret_arr['status'] != 1){
  332. return responseToJson(-20003);
  333. }
  334. }
  335. //赛事下单式注单作废,串关注单下此赛事按平局处理
  336. $upapp = new \App\Models\SportsNoteList();
  337. $upapp->delorder($match_id,'lq');
  338. $status = 4;
  339. }
  340. */
  341. $addnew = new \App\Models\Comendnotice();
  342. $addnew->addcomendnotice($match_id,'lq');
  343. $twoapp = new \App\Models\SportsBasket();
  344. $twoapp->updatestatus('match_id',$match_id,['status'=>$status,'utime'=>date('Y-m-d H:i:s')]);//修改赛事状态
  345. $newapp = new \App\Models\Stlqresult();
  346. $newapp->updatestatus('match_id',$match_id,['status'=>$status,'update_time'=>date('Y-m-d H:i:s')]);//修改结果状态
  347. //添加赛事结果比较记录
  348. $lastLog = \App\Models\Stlqresultlog::where([
  349. ['match_id', $match_id],
  350. ['type', 2]
  351. ])->orderBy('id', 'desc')->first();
  352. if(empty($lastLog) || !(
  353. $lastLog['guest_score'] == $model->guest_score
  354. && $lastLog['home_score'] == $model->home_score
  355. )){
  356. $logData = [
  357. 'guest_score' => $model->guest_score,
  358. 'home_score' => $model->home_score,
  359. 'type' => 2,
  360. 'match_id' => $match_id,
  361. 'user_id' => session('adminInfo.admin_id'),
  362. 'create_at' => now()
  363. ];
  364. \App\Models\Stlqresultlog::insert($logData);
  365. }
  366. return responseToJson(1);
  367. }
  368. function saislist(){
  369. $lgid = $_POST['lgid'];//赛事id
  370. $newstzqcompetition = new \App\Models\SportsBasket();
  371. $league_data = $newstzqcompetition->allcompetition($lgid);//赛事id
  372. return $league_data;
  373. }
  374. function addoutcome(Req $req) {
  375. if (!$req->isMethod('post')) {
  376. $lange = trans('menu');
  377. $newapp = new \App\Models\BasketLeague();
  378. $league_data = $newapp->allleague();//联赛id
  379. return view('admin.sportsbk/addoutcome',['data'=>$league_data]);
  380. }else{
  381. $model = new \App\Models\Stlqresult();
  382. $model->lg_id = trim($req->input('lg_id'));//联赛id
  383. $model->home_team = trim($req->input('home_team'));
  384. $model->guest_team = trim($req->input('guest_team'));
  385. $model->home_rate = trim($req->input('home_rate'));
  386. $model->guest_rate = trim($req->input('guest_rate'));
  387. $model->home_score = trim($req->input('home_score'));
  388. $model->guest_score = trim($req->input('guest_score'));
  389. $model->all_goal = trim($req->input('all_goal'));
  390. $model->match_score = trim($req->input('match_score'));
  391. $model->u_home_score = trim($req->input('u_home_score'));
  392. $model->u_guest_score = trim($req->input('u_guest_score'));
  393. $model->update_time = date('Y-m-d h:i:s', time());//更新时间
  394. $model->match_time = "11:22";//trim($req->input('match_time'));
  395. $model->tag = trim($req->input('tag'));
  396. $model->status = trim($req->input('status'));
  397. $model->match_process = trim($req->input('match_process'));
  398. $model->match_id = trim($req->input('match_id'));//赛事id
  399. $model->save();
  400. return responseToJson(1);
  401. }
  402. }
  403. //赛事结果修改
  404. function edit(Req $req) {
  405. $id = $req->id;
  406. if (intval($id) < 1) {
  407. return -1;
  408. }
  409. if (!$req->isMethod('post')) {
  410. $data = \App\Models\Stlqresult::where('id', $id)->first();
  411. if (!$data) {
  412. return -2;
  413. }
  414. $data = $data->toArray();
  415. return view('admin.sportsbk/edit', $data);
  416. } else {
  417. $model = \App\Models\Stlqresult::where('id', $id)->first();
  418. $model->home_team = $req->input('home_team');
  419. $model->guest_team = $req->input('guest_team');
  420. $model->home_rate = $req->input('home_rate');
  421. $model->guest_rate = $req->input('guest_rate');
  422. $model->status = $req->input('status');
  423. //$model->update_time = time();
  424. $model->save();
  425. return responseToJson(1);
  426. }
  427. }
  428. //删除赛事结果
  429. function deleteoutcome(Req $req) {
  430. $id = $req->input('id');
  431. if (empty($id)) {
  432. return responseToJson(-2001); //
  433. }
  434. $ids = explode(',', $id);
  435. if (!is_array($ids) && intval($ids) < 0) {
  436. return responseToJson(-2002); //
  437. }
  438. if (is_array($ids) && count($ids) > 0) {
  439. foreach ($ids as $k => $v) {
  440. if (intval($v) < 1) {
  441. unset($ids[$k]);
  442. }
  443. }
  444. }
  445. // echo '敬请期待';die;
  446. $rows = \App\Models\Stlqresult::whereIn('id', $ids)->delete();
  447. if (!$rows) {
  448. return responseToJson(-2003);
  449. }
  450. return responseToJson(1);
  451. }
  452. }