response()->alert()->error("设置失败1"); }else{ $shop = Pls::where('id',$input['id'])->first(); if (empty($shop)){ return $this->response()->alert()->error("设置失败2"); } try { RefreshOrderPlsResult::dispatch($shop->id); } catch (JingCaiException $exception) { return $this->response()->alert()->error($exception->getMessage()); } return $this->response()->success("设置成功")->refresh(); } } public function form() { $shop_id = $this->payload['id']; $shops = Pls::where('id',$shop_id)->first(); if (empty($shops)){ return $this->response()->alert()->error('无该数据'); } $this->display('issue_num','期号')->value($shops->issue_num); $this->display('result','结果')->value(implode(',',$shops->result ?: [])); $this->display('prize_time','开奖时间')->value($shops->prize_time); $this->hidden('id')->value($shop_id); } }