Przeglądaj źródła

Merge branch 'dev_wf' of wufeng/fuse into version1.5

wufeng 2 lat temu
rodzic
commit
8703c39df0

+ 2 - 2
app/admin/logic/OrderLogic.php

@@ -156,9 +156,9 @@ class OrderLogic extends BaseLogic
 
 
             if (empty($da)) throw new Exception('没有可供导出的数据');
             if (empty($da)) throw new Exception('没有可供导出的数据');
         } catch (Exception $exception) {
         } catch (Exception $exception) {
-            $da[] = $exception->getMessage();
+            $da = [[$exception->getMessage()]];
         } catch (ValidateException $validateException) {
         } catch (ValidateException $validateException) {
-            $da[] = $validateException->getError();
+            $da = [[$validateException->getError()]];
         }
         }
         $headerArr = array_keys($da[0]);
         $headerArr = array_keys($da[0]);
         excel_save('订单导出' . date('YmdHis'), $headerArr, $da);
         excel_save('订单导出' . date('YmdHis'), $headerArr, $da);

+ 1 - 1
app/mobile/logic/OrderLogic.php

@@ -296,7 +296,7 @@ class OrderLogic extends BaseLogic
             return json_show(CommonModel::$success, '下单成功', $res);
             return json_show(CommonModel::$success, '下单成功', $res);
         } catch (Exception $exception) {
         } catch (Exception $exception) {
             Db::rollback();
             Db::rollback();
-            return json_show(CommonModel::$success, '下单失败,' . $exception->getMessage());
+            return json_show(CommonModel::$error_param, '下单失败,' . $exception->getMessage());
         }
         }