service = new SokabeService(['mall_id' => $this->mall_id]); } /** * 手续费未成功提交列表 * * @return void */ public function actionTax() { if ($this->request->isAjax) { return $this->success( 'ok', $this->service->getTaxList( array_merge( $this->request->getBodyParams(), $this->request->get(), ) ) ); } return $this->render($this->action->id); } /** * 失败列表 * * @return void */ public function actionFail() { if ($this->request->isAjax) { return $this->success( 'ok', $this->service->getOrderList() ); } return $this->render($this->action->id); } /** * 重新提交 * * @return void */ public function actionResub() { if ($this->request->isAjax) { // id $id = $this->request->get('id'); return $this->service->resub($id) ? $this->success('ok') : $this->error($this->service->getError()); } } /** * 失败 * * @return void */ public function actionToFail(int $id) { return $this->service->toFail($id) ? $this->success('ok') : $this->error($this->service->getError()); } /** * 成功 * * @return void */ public function actionSuccess(int $id) { $this->service->toSuccess($id); } /** * @return mixed */ public function actionList() { if ($this->request->isAjax) { return $this->success( 'ok', $this->service->getList( array_merge( $this->request->get(), ) ) ); } return $this->render($this->action->id); } /** * 提交成功 * * @param integer $id * @return mixed */ public function actionSubSuccess(int $id) { return $this->service->subSuccess($id) ? $this->success('ok') : $this->error($this->service->getError()); } /** * 提交失败 * * @param integer $id * @return mixed */ public function actionSubFail(int $id) { return $this->service->subFial($id) ? $this->success('ok') : $this->error($this->service->getError()); } }