Browse Source

refactor:修改售后控制器处理售后申请方法的注释

antshop
linyaostalker 5 years ago
parent
commit
05c387985a
  1. 8
      backend/modules/shop/controllers/AfterSaleController.php

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

@ -8,6 +8,8 @@ use backend\modules\shop\models\searchs\AfterSaleSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use iron\widget\Excel;
use yii\web\Response;
/**
* AfterSaleController implements the CRUD actions for AfterSale model.
@ -105,7 +107,7 @@ class AfterSaleController extends Controller
*/
public function actionDelete($id)
{
$this->findModel($id)->delete();
$this->findModel($id);
return $this->redirect(['index']);
}
@ -138,7 +140,7 @@ class AfterSaleController extends Controller
} else {
$dataProvider = $searchModel->search($params);
}
\iron\widget\Excel::export([
Excel::export([
'models' => $dataProvider->getModels(),
'format' => 'Xlsx',
'asAttachment' => true,
@ -150,7 +152,7 @@ class AfterSaleController extends Controller
/**
* @param $status
* @param $id
* @return \yii\web\Response
* @return Response
* 处理售后申请
*/
public function actionHandle($status, $id)

Loading…
Cancel
Save