1.提交缺失的东西
This commit is contained in:
@ -134,7 +134,7 @@ class SignLogic
|
||||
|
||||
$today_order_award = Db::name('account_log')
|
||||
->where(['user_id'=>$user_id,'source_type'=>AccountLog::order_add_integral])
|
||||
->whereTime('create_time',$today_start,$today_end)
|
||||
->whereTime('create_time',date("Y-m-d",$today_start),date("Y-m-d",$today_end))
|
||||
->find();
|
||||
$make_inegral[] = [
|
||||
'name' => '下单任意商品',
|
||||
@ -147,7 +147,7 @@ class SignLogic
|
||||
if($invited_award_integral > 0){
|
||||
$total_invited_award = Db::name('account_log')
|
||||
->where(['user_id'=>$user_id,'source_type'=>AccountLog::invite_add_integral])
|
||||
->whereTime('create_time',$today_start,$today_end)
|
||||
->whereTime('create_time',date("Y-m-d",$today_start),date("Y-m-d",$today_end))
|
||||
->find();
|
||||
$make_inegral[] = [
|
||||
'name' => '成功邀请1位好友',
|
||||
@ -176,7 +176,7 @@ class SignLogic
|
||||
->where(['del'=>0,'user_id'=>$user_id])
|
||||
->order('id desc')
|
||||
->find();
|
||||
$now = time();
|
||||
$now = date("Y-m-d");
|
||||
$total_integral = 0; //签到赠送的积分
|
||||
$total_growth = 0; //签到赠送的成长值
|
||||
$continuous_integral = 0; //连续签到积分
|
||||
|
||||
Reference in New Issue
Block a user