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