get_store_id(), 'is_delete' => 0, ]); return $this->asJson([ 'code' => 0, 'data' => [ 'model' => $model, 'district' => District::getAll() ] ]); } /** * 保存 */ public function actionSave() { $form = new TerritorialForm(); $form->territorial = post_params('territorial'); $form->detail = post_params('detail'); $form->store_id = get_store_id(); return $this->asJson($form->save()); } }