Ken 5 днів тому
батько
коміт
de61107b77
1 змінених файлів з 0 додано та 106 видалено
  1. 0 106
      app/Http/Controllers/admin/Bet.php

+ 0 - 106
app/Http/Controllers/admin/Bet.php

@@ -44,110 +44,4 @@ class Bet extends Controller
         BetService::randomVirtualBetting(3);
         return $this->success();
     }
-
-    // /**
-    //  *  修改|新增
-    //  *
-    //  */    
-    // public function store()
-    // {
-    //     // try {
-    //         $params = request()->all();
-
-    //         $validator = [
-    //             'issue_no' => 'required|string|max:50|alpha_dash|unique:issues,issue_no',
-    //             'winning_numbers' => 'nullable|string|max:100',
-    //             'status' => 'nullable|string',
-    //         ];
-
-    //         request()->validate($validator);
-
-    //         $ret = BetService::submit($params);
-    //         if ($ret['code'] == BetService::NOT) {
-    //             return $this->error($ret['code'], $ret['msg']);
-    //         }
-    //     // } catch (ValidationException $e) {
-    //     //     return $this->error(HttpStatus::VALIDATION_FAILED, '', $e->errors());
-    //     // } catch (Exception $e) {
-    //     //     return $this->error(intval($e->getCode()));
-    //     // }
-    //     return $this->success([], $ret['msg']);
-
-    // }
-
-    // /**
-    //  *开始
-    //  *
-    //  */    
-    // public function betting()
-    // {
-    //     $id = request()->input('id');
-    //     if (!$id) {
-    //         return $this->error(HttpStatus::VALIDATION_FAILED, '参数错误');
-    //     }
-    //     $ret = BetService::betting($id);
-    //     if ($ret['code'] == BetService::NOT) {
-    //         return $this->error($ret['code'], $ret['msg']);
-    //     }
-    //     return $this->success([], $ret['msg']);
-    // }
-
-    // /**
-    //  * 关闭
-    //  *
-    //  */    
-    // public function close()
-    // {
-    //     $id = request()->input('id');
-    //     if (!$id) {
-    //         return $this->error(HttpStatus::VALIDATION_FAILED, '参数错误');
-    //     }
-    //     $ret = BetService::closeBetting($id);
-    //     if ($ret['code'] == BetService::NOT) {
-    //         return $this->error($ret['code'], $ret['msg']);
-    //     }
-    //     return $this->success([], $ret['msg']);
-    // }
-    // /**
-    //  *  开奖
-    //  *
-    //  */    
-    // public function lotteryDraw()
-    // {
-    //     $id = request()->input('id');
-    //     $winning_numbers = request()->input('winning_numbers');
-    //     $image = request()->input('image');
-    //     $combo = request()->input('combo');
-    //     if (!$id) {
-    //         return $this->error(HttpStatus::VALIDATION_FAILED, '参数错误');
-    //     }
-    //     if (!$winning_numbers) {
-    //         return $this->error(HttpStatus::VALIDATION_FAILED, '参数错误');
-    //     }
-    //     if(explode(',', $winning_numbers) < 3){
-    //         return $this->error(HttpStatus::VALIDATION_FAILED, '开奖号码格式错误');
-    //     }
-    //     $ret = BetService::lotteryDraw($id,$winning_numbers,$combo,$image);
-    //     if ($ret['code'] == BetService::NOT) {
-    //         return $this->error($ret['code'], $ret['msg']);
-    //     }
-    //     return $this->success([], $ret['msg']);
-    // }
-
-    // /**
-    //  * 删除
-    //  */
-    // public function destroy()
-    // {
-    //     $id = request()->post('id');
-    //     // 示例:通过 ID 删除
-    //     $Bet= IssueService::findOne(['id' => $id]);
-    //     if (!$info) {
-    //         return $this->error(0, '期数不存在');
-    //     }
-
-    //     $info->delete();
-
-    //     return $this->success([], '删除成功');
-    // }
 }