1. 修复签到失败的问题;
2. 修复流量重置价格获取错误的问题;
3. 支付设置问题
This commit is contained in:
兔姬桑
2020-04-21 22:15:14 +08:00
parent be6b10df6e
commit 290df1a0a6
3 changed files with 3 additions and 3 deletions

View File

@@ -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' => '余额不足,请充值余额']);