|
|
@@ -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('没有权限');
|
|
|
}
|