Browse Source

给予计算方式固定值

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
94207c9284
  1. 1
      backend/controllers/ExpressTemplateController.php

1
backend/controllers/ExpressTemplateController.php

@ -71,6 +71,7 @@ class ExpressTemplateController extends Controller
public function actionCreate() public function actionCreate()
{ {
$model = new ExpressTemplate(); $model = new ExpressTemplate();
$model->calculation = ExpressTemplate::CALCULATION_NUMBER;
if (Yii::$app->request->isPost) { if (Yii::$app->request->isPost) {
$data = Yii::$app->request->post('ExpressTemplate'); $data = Yii::$app->request->post('ExpressTemplate');

Loading…
Cancel
Save