RegionController.php 555 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace addons\StarChain\backend\controllers;
  3. use addons\StarChain\common\services\RegionService;
  4. class RegionController extends BaseController
  5. {
  6. /**
  7. * 导入
  8. *
  9. * @return void
  10. */
  11. public function actionImport()
  12. {
  13. if ($this->request->isAjax) {
  14. $service = new RegionService(['mall_id' => $this->mall_id]);
  15. // $service->taskImport();die;
  16. return $service->import()
  17. ? $this->success('ok')
  18. : $this->error($service->error);
  19. }
  20. }
  21. }