Commit b1595353 by 朱继来

添加模板导入校验

parent ce6e35c5
Showing with 2 additions and 0 deletions
...@@ -634,6 +634,8 @@ Class AddOrderController extends Controller ...@@ -634,6 +634,8 @@ Class AddOrderController extends Controller
$excel = $data->toArray(); $excel = $data->toArray();
}); });
if (empty($excel)) return ['errcode' => 1, 'errmsg' => '未获取到模板内容,请检查模板内容数据格式'];
$type = $request->input('type'); // 1.联营 2.自营 $type = $request->input('type'); // 1.联营 2.自营
if ($type == 1) { if ($type == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment