Kirin 1 年間 前
コミット
5a0c9f5c6c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/controller/api/v1/user/UserExchangeController.php

+ 1 - 1
app/controller/api/v1/user/UserExchangeController.php

@@ -58,7 +58,7 @@ class UserExchangeController
             ['bankname', ''],
             ['cardnum', ''],
         ]);
-        if (!preg_match('/^[0-9]+(.[0-9]{1,2})?$/', (float)$extractInfo['money'])) return app('json')->fail('转换能量输入有误');
+        if (!preg_match('/^[0-9]+(.[0-9]{1,2})?$/', (float)$extractInfo['energy'])) return app('json')->fail('转换能量输入有误');
         if (!$extractInfo['cardnum'] == '')
             if (!preg_match('/^([1-9]{1})(\d{8}|\d{11}|\d{14}|\d{15}|\d{16}|\d{18})$/', $extractInfo['cardnum']))
                 return app('json')->fail('银行卡号输入有误');