Kirin 1 rok pred
rodič
commit
5a0c9f5c6c

+ 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('银行卡号输入有误');