mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-12 23:48:53 +00:00
hotfix
1. 修复签到失败的问题; 2. 修复流量重置价格获取错误的问题; 3. 支付设置问题
This commit is contained in:
@@ -271,7 +271,7 @@ class UserController extends Controller
|
||||
//重置流量
|
||||
public function resetUserTraffic()
|
||||
{
|
||||
$temp = Order::uid()->where('status', 2)->where('is_expire', 0)->first();
|
||||
$temp = Order::uid()->where('status', 2)->where('is_expire', 0)->with(['goods'])->whereHas('goods', function($q){ $q->where('type', 2); })->first();
|
||||
$renewCost = Goods::query()->where('id', $temp->goods_id)->first()->renew;
|
||||
if(Auth::user()->balance < $renewCost){
|
||||
return Response::json(['status' => 'fail', 'data' => '', 'message' => '余额不足,请充值余额']);
|
||||
|
||||
Reference in New Issue
Block a user