mainId, $this->shopId); util::success($list); } public function actionDetail() { $form = new ApplicationIdForm(); $form->loadAndValidate(); $detail = LakalaAccountService::detail((int)$form->id, $this->mainId, $this->shopId); util::success($detail); } public function actionCreate() { $form = new CreateForm(); $data = Yii::$app->request->post(); $form->load($data ?: ['type' => ''], ''); $form->validateForm(); util::success(LakalaAccountService::create( $this->mainId, $this->shopId, $this->shop, $form->type, (int)$form->accountId )); } public function actionSaveDraft() { $form = new FormDataForm(); $form->loadAndValidate(); util::success(LakalaAccountService::saveDraft( (int)$form->id, $this->mainId, $this->shopId, $form->getFormData(), (int)$form->currentStep )); } public function actionDeleteDraft() { $form = new ApplicationIdForm(); $form->loadAndValidate(); LakalaAccountService::deleteDraft((int)$form->id, $this->mainId, $this->shopId); util::complete(); } public function actionUploadFile() { $form = new UploadFileForm(); $form->loadAndValidate(); util::success(LakalaAccountService::upload( (int)$form->id, $this->mainId, $this->shopId, $form->content, $form->imgType, (int)$form->isOcr )); } public function actionOcrResult() { $form = new OcrResultForm(); $form->loadAndValidate(); util::success(LakalaAccountService::ocr( (int)$form->id, $this->mainId, $this->shopId, $form->batchNo, $form->imgType )); } public function actionAliyunOcr() { $form = new AliyunOcrForm(); $form->loadAndValidate(); util::success(AliyunOcrClass::recognize( (int)$form->id, $this->mainId, $this->shopId, $form->imgType, $form->imageUrl )); } public function actionOption() { $form = new OptionForm(); $form->loadAndValidate(); $option = LakalaAccountService::option($form->type, $form->parentCode, $form->keyword); util::success($option); } public function actionApplyContract() { $form = new ApplicationIdForm(); $form->loadAndValidate(); $contract = LakalaAccountService::applyContract((int)$form->id, $this->mainId, $this->shopId); util::success($contract); } public function actionContractStatus() { $form = new ApplicationIdForm(); $form->loadAndValidate(); util::success(LakalaAccountService::contractStatus((int)$form->id, $this->mainId, $this->shopId)); } public function actionSubmit() { $form = new FormDataForm(); $form->loadAndValidate(); $submit = LakalaAccountService::submitForPlatformAudit( (int)$form->id, $this->mainId, $this->shopId, $form->getFormData() ); util::success($submit); } public function actionRefresh() { $form = new ApplicationIdForm(); $form->loadAndValidate(); $re = LakalaAccountService::refresh((int)$form->id, $this->mainId, $this->shopId); util::success($re); } public function actionSetCurrent() { $form = new SetCurrentForm(); $form->loadAndValidate(); LakalaAccountService::setCurrent((int)$form->accountId, $this->mainId, $this->shopId); util::complete('已设置为当前收款账户'); } }