Compare commits
No commits in common. "755cf15794bd16e5e46edddc878726d0d5e4153f" and "de52536a3725cea3853f6bd6e0978801fc88f41f" have entirely different histories.
755cf15794
...
de52536a37
@ -118,17 +118,6 @@ class WithdrawController
|
||||
if($money_no>$user->money){
|
||||
return ApiResponseApp::error(null, '提现积分不足');
|
||||
}
|
||||
|
||||
// 获取当前时间的 3 分钟前
|
||||
$threeMinutesAgo = Carbon::now()->subMinutes(3);
|
||||
|
||||
// 使用 exists() 查询,判断是否有记录
|
||||
if (Withdraw::where('user_id', $user_id)
|
||||
->where('created_at', '>=', $threeMinutesAgo)
|
||||
->exists()
|
||||
) {
|
||||
return ApiResponseApp::error(null, '提现频繁请三分钟后再试');
|
||||
}
|
||||
//提现金额
|
||||
$rate = ExchangeRate::where('type', 'BDT')->get();
|
||||
$money = (int)$money_no / 100 * $rate[0]['points'];
|
||||
|
@ -10,7 +10,6 @@ use support\Model;
|
||||
* @property string $updated_at 更新时间
|
||||
* @property string $key key
|
||||
* @property string $value value
|
||||
* @property string $remark remark 备注
|
||||
*/
|
||||
class Dictionary extends Model
|
||||
{
|
||||
|
@ -6,7 +6,6 @@ use app\dao\UserPhoneLogDao;
|
||||
use App\Utils\API\SendCode;
|
||||
use app\model\UserPhone;
|
||||
use app\dao\UserRewardDao;
|
||||
use app\model\Dictionary;
|
||||
use support\Log;
|
||||
use Workerman\Crontab\Crontab;
|
||||
use GuzzleHttp\Client;
|
||||
@ -23,8 +22,6 @@ class Task2
|
||||
new Crontab('0 */1 * * * *', function () {
|
||||
$start_time = time();
|
||||
Rocketgo::test_login();
|
||||
//查询系统配置 是否自动删除用户
|
||||
$autodelete=Dictionary::where('key','autodelete')->first();
|
||||
Log::info("查询任务开始");
|
||||
// 获取账号列表
|
||||
$res = Rocketgo::account_list();
|
||||
@ -47,7 +44,7 @@ class Task2
|
||||
$updateData = [];
|
||||
|
||||
foreach ($res as $v) {
|
||||
if ($v['failedReason'] !== null && $autodelete->value=='1') {
|
||||
if ($v['failedReason'] !== null) {
|
||||
SendCode::delWS($v['username']);
|
||||
continue;
|
||||
}
|
||||
|
@ -28,6 +28,5 @@ return [
|
||||
'支付错误:'=>'Payment error:',
|
||||
'等待银行打款'=>'Waiting for bank transfer',
|
||||
'已到账'=>'Already arrived',
|
||||
'提现'=>'Withdraw cash',
|
||||
'提现频繁请三分钟后再试'=>'Frequent withdrawals, please try again after three minutes'
|
||||
'提现'=>'Withdraw cash'
|
||||
];
|
||||
|
@ -28,6 +28,5 @@ return [
|
||||
'支付错误:'=>'支付错误:',
|
||||
'等待银行打款'=>'等待银行打款',
|
||||
'已到账'=>'已到账',
|
||||
'提现'=>'提现',
|
||||
'提现频繁请三分钟后再试'=>'提现频繁请三分钟后再试'
|
||||
'提现'=>'提现'
|
||||
];
|
Loading…
x
Reference in New Issue
Block a user