diff --git a/frontend/controllers/FinanceController.php b/frontend/controllers/FinanceController.php index ee9b715..8567a10 100644 --- a/frontend/controllers/FinanceController.php +++ b/frontend/controllers/FinanceController.php @@ -6356,7 +6356,7 @@ class FinanceController extends \frontend\controllers\UserBaseController $result['msg'] = '操作失败'; $web_path = Yii::$app->getBasePath() . '/../frontend/web'; - $filename = $web_path . $request->post('urlfile'); + $filename = $web_path . $request->post('file'); $base_filename=$request->post('file'); //读取Excel 2007 diff --git a/frontend/views/finance/car-update-frame.php b/frontend/views/finance/car-update-frame.php index 25ac9e4..f8cfdfb 100644 --- a/frontend/views/finance/car-update-frame.php +++ b/frontend/views/finance/car-update-frame.php @@ -70,7 +70,7 @@ use \common\libs\MyLib; }, function(){ var params = $("#theFrm").serialize(); $.post('/finance/car-update-frame-info',params,function(obj){ - parent.layer.msg(data.msg); + parent.layer.msg(obj.msg); if(obj.success) { window.location.reload(); }