Ken 2 meses atrás
pai
commit
2ecc057c2c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Services/WithdrawService.php

+ 1 - 1
app/Services/WithdrawService.php

@@ -478,7 +478,7 @@ class WithdrawService
     //输入钱宝提现金额
     static function inputQbAmount($chatId, $amount, $messageId)
     {
-        if (!preg_match('/^-?\d+(\.\d+)?$/', $amount)) {
+        if (!preg_match('/^\d+(\.\d{1,2})?$/', $amount)) {
             return [
                 'chat_id' => $chatId,
                 'text' => "金额输入不正确,请发送提现数字",