|
|
@@ -200,14 +200,14 @@ class User extends BaseController
|
|
200
|
200
|
|
|
201
|
201
|
// 红包
|
|
202
|
202
|
public function hongbao_info(){
|
|
203
|
|
- log::info("============hongbao");
|
|
|
203
|
+ // log::info("============hongbao");
|
|
204
|
204
|
$user = $this->request->userInfo();
|
|
205
|
205
|
if($user->uid>0){
|
|
206
|
206
|
// 已经入账红包
|
|
207
|
207
|
$data['total_source']=$user->hongbao;
|
|
208
|
208
|
// 为生效红包
|
|
209
|
209
|
$data['no_total_source']=Db::name('user_sign_hongbao')->where('status', -1)->where('uid', $user->uid)->sum('number');;
|
|
210
|
|
- log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
|
210
|
+ // log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
211
|
211
|
return app('json')->success($data);
|
|
212
|
212
|
|
|
213
|
213
|
}
|
|
|
@@ -408,7 +408,7 @@ class User extends BaseController
|
|
408
|
408
|
|
|
409
|
409
|
// 未生效贡献值
|
|
410
|
410
|
$data['no_total_source']=Db::name('user_sign_gongxian')->where('status', -1)->where('uid', $user->uid)->sum('number');
|
|
411
|
|
- log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
|
411
|
+ // log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
412
|
412
|
return app('json')->success($data);
|
|
413
|
413
|
}
|
|
414
|
414
|
|
|
|
@@ -481,7 +481,7 @@ class User extends BaseController
|
|
481
|
481
|
$data['total_source'] = $user->jingdou;// 临时使用
|
|
482
|
482
|
// 为生效京豆
|
|
483
|
483
|
$data['no_total_source']=Db::name('user_sign_jingdou')->where('status', -1)->where('uid', $user->uid)->sum('number');;
|
|
484
|
|
- log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
|
484
|
+ // log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
485
|
485
|
|
|
486
|
486
|
return app('json')->success($data);
|
|
487
|
487
|
|
|
|
@@ -530,7 +530,7 @@ class User extends BaseController
|
|
530
|
530
|
$data['total_source']=$user->fugou;
|
|
531
|
531
|
// 为生效京豆
|
|
532
|
532
|
$data['no_total_source']=Db::name('user_sign_fugou')->where('status', -1)->where('uid', $user->uid)->sum('number');;
|
|
533
|
|
- log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
|
533
|
+ // log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
534
|
534
|
return app('json')->success($data);
|
|
535
|
535
|
|
|
536
|
536
|
}
|
|
|
@@ -577,7 +577,7 @@ class User extends BaseController
|
|
577
|
577
|
// 为生效京豆
|
|
578
|
578
|
$data['no_total_source']=0;
|
|
579
|
579
|
//$data['no_total_source']=Db::name('user_sign_vr')->where('status', -1)->where('uid', $user->uid)->sum('number');;
|
|
580
|
|
- log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
|
580
|
+ // log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
581
|
581
|
return app('json')->success($data);
|
|
582
|
582
|
|
|
583
|
583
|
}
|
|
|
@@ -618,7 +618,7 @@ class User extends BaseController
|
|
618
|
618
|
$data['total_source']=$user->score;
|
|
619
|
619
|
// 为生效积分
|
|
620
|
620
|
$data['no_total_source']=Db::name('user_sign_score')->where('status', -1)->where('uid', $user->uid)->sum('reward_socre');;
|
|
621
|
|
- log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
|
621
|
+ // log::info("====spread_info_yhc=={$data['total_source']}======={$data['no_total_source']}");
|
|
622
|
622
|
return app('json')->success($data);
|
|
623
|
623
|
|
|
624
|
624
|
}
|