|
@@ -569,9 +569,7 @@ class Product extends Api
|
|
|
|
|
|
|
|
$params = Request::instance()->param();
|
|
$params = Request::instance()->param();
|
|
|
$file = request()->file('file');
|
|
$file = request()->file('file');
|
|
|
-echo "<pre>";
|
|
|
|
|
-print_r($params);
|
|
|
|
|
-echo "<pre>";die;
|
|
|
|
|
|
|
+
|
|
|
// 1. 先判断文件是否存在
|
|
// 1. 先判断文件是否存在
|
|
|
if (empty($file)) {
|
|
if (empty($file)) {
|
|
|
$this->error('请上传Excel文件');
|
|
$this->error('请上传Excel文件');
|