shish vor 1 Jahr
Ursprung
Commit
87822db035
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 2 2
      app-ghs/controllers/OrderController.php
  2. 1 1
      common/components/dict.php

+ 2 - 2
app-ghs/controllers/OrderController.php

@@ -1033,7 +1033,7 @@ class OrderController extends BaseController
         $modifyPrice = $post['modifyPrice'] ?? 0;
         $pattern = '/^\d+(\.\d{1,2})?$/';
         if ($modifyPrice > 0) {
-            if (preg_match($pattern, $modifyPrice) == false) {
+            if (!preg_match($pattern, $modifyPrice)) {
                 //容错前端
                 util::fail('金额不能超2位小数');
             }
@@ -1174,7 +1174,7 @@ class OrderController extends BaseController
             $post['debt'] = OrderClass::DEBT_YES;
         }
 
-        if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
+        if (!isset($shopAdmin->super) || $shopAdmin->super != 1) {
             if ($hasPay == dict::getDict('hasPay', 'payed')) {
                 //util::fail('没有权限');
             }

+ 1 - 1
common/components/dict.php

@@ -322,7 +322,7 @@ class dict
             'nextDistance' => 1000,//每增加1公里
             'nextPrice' => 2,//增加2元
         ],
-
+//4
         "io" => ['payout' => 0, 'income' => 1, 'other' => 2],
         "ioName" => [0 => '支出', 1 => '收入', 2 => '其它'],