Browse Source

开发运费区域删除方法

antshop
linyaostalker 5 years ago
parent
commit
7ef8cbb333
  1. 8
      backend/modules/shop/controllers/ExpressTemplateController.php

8
backend/modules/shop/controllers/ExpressTemplateController.php

@ -325,4 +325,12 @@ class ExpressTemplateController extends Controller
'expressTemplateModel' => $expressTemplateModel
]);
}
public function actionExpressAreaDelete($id)
{
$expressAreaModel = ExpressArea::findOne($id);
$expressTemplateId = $expressAreaModel->express_template;
$expressAreaModel->delete();
return $this->redirect('express-area-list?id='.$expressTemplateId);
}
}
Loading…
Cancel
Save