|
@@ -68,8 +68,9 @@ class UserExtractController
|
|
|
['cardnum', ''],
|
|
|
['weixin', ''],
|
|
|
], $request);
|
|
|
- if (time() - CacheService::get('UserExtract_' . $request->uid(), time()) < 10) return app('json')->fail('请勿连续多次提交');
|
|
|
- else CacheService::set('UserExtract_' . $request->uid(), time());
|
|
|
+// if (time() - CacheService::get('UserExtract_' . $request->uid(), time()) < 10) return app('json')->fail('请勿连续多次提交');
|
|
|
+// else CacheService::set('UserExtract_' . $request->uid(), time());
|
|
|
+ if (cache($request->uid())) return app('json')->fail('请勿频繁点击');
|
|
|
if (!preg_match('/^(([1-9]\d*)|0)(\.\d{1-2})?$/', $extractInfo['money'])) return app('json')->fail('提现金额输入有误');
|
|
|
$user = $request->user();
|
|
|
$broken_time = intval(sys_config('extract_time'));
|
|
@@ -97,6 +98,7 @@ class UserExtractController
|
|
|
if (!$extractInfo['cardnum'] == '')
|
|
|
if (!preg_match('/^([1-9]{1})(\d{14}|\d{18})$/', $extractInfo['cardnum']))
|
|
|
return app('json')->fail('银行卡号输入有误');
|
|
|
+ cache($request->uid(), 1, 5);
|
|
|
if (UserExtract::userExtract($request->user(), $extractInfo))
|
|
|
return app('json')->successful('申请提现成功!');
|
|
|
else
|