where('id',$id)->first(); if($data->status != 1){ throw new \Exception('当前订单已处理!'); } StreamBusiness::addStream($data->user_id,$data->money,streamType12,moldType2,moldTypefild2,$id); Db::table('wa_check_in')->where('id',$id)->update(['status'=>2]); }catch (\Throwable $exception){ throw new \Exception($exception->getMessage()); } } /** 驳回 * @param $id * @return void * @throws \Exception */ static public function reject($id) { try { $data=Db::table('wa_check_in')->where('id',$id)->first(); if($data->status != 1){ throw new \Exception('当前订单已处理!'); } Db::table('wa_check_in')->where('id',$id)->update(['status'=>3]); }catch (\Throwable $exception){ throw new \Exception($exception->getMessage()); } } }