Ken 2 bulan lalu
induk
melakukan
2ecc057c2c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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' => "金额输入不正确,请发送提现数字",