|
|
@@ -897,6 +897,13 @@ class OrderController extends BaseController
|
|
|
util::fail('请选择客户');
|
|
|
}
|
|
|
|
|
|
+ $actPrice = $post['actPrice'] ?? 0;
|
|
|
+ $pattern = '/^\d+(\.\d{1,2})?$/';
|
|
|
+ if (preg_match($pattern, $actPrice) == false) {
|
|
|
+ //容错前端
|
|
|
+ util::fail('金额不能超2位小数');
|
|
|
+ }
|
|
|
+
|
|
|
$custom = CustomClass::getCustom($customId);
|
|
|
if (empty($custom)) {
|
|
|
util::fail('请选客户哦');
|