$coupon['can_use_coupon_nums'] = $CouponMember->where([ ['member_id','eq',$member_id], ['is_used','eq','2'], ['efficient_start','<=',time()], ['efficient_end','>=',time()], ['status','eq',1] ])->count('id'); $coupon['expire_coupon_nums'] = $CouponMember->where([ ['member_id','eq',$member_id], ['is_used','eq','2'], ['efficient_end','<',time()], ])->count('id'); $coupon['use_coupon_nums'] = $CouponMember->where([['member_id','eq',$member_id], ['is_used','eq','1']])->count('id'); $coupon['draw_coupon_nums'] = $CouponMember->where([['member_id','eq',$member_id]])->count('id');是什么意思
理解问题$coupon['can_use_coupon_nums'] = $CouponMember->where([ ['member_id','eq',$member_id], ['is_used','eq','2'], ['efficient_start','<=',time()], ['efficient_end','>=',time()], ['status','eq',1] ])->count('id'); $coupon['expire_coupon_nums'] = $CouponMember->where([ ['member_id','eq',$member_id], ['is_used','eq','2'], ['efficient_end','<',time()], ])->count('id'); $coupon['use_coupon_nums'] = $CouponMember->where([['member_id','eq',$member_id], ['is_used','eq','1']])->count('id'); $coupon['draw_coupon_nums'] = $CouponMember->where([['member_id','eq',$member_id]])->count('id');是什么意思
已完成理解「$coupon['can_use_coupon_nums'] = $CouponMember->where([ ['member_id','eq',$member_id], ['is_used','eq','2'], ['efficient_start','<=',time()], ['efficient_end','>=',time()], ['status','eq',1] ])->count('id'); $coupon['expire_coupon_nums'] = $CouponMember->where([ ['member_id','eq',$member_id], ['is_used','eq','2'], ['efficient_end','<',time()], ])->count('id'); $coupon['use_coupon_nums'] = $CouponMember->where([['member_id','eq',$member_id], ['is_used','eq','1']])->count('id'); $coupon['draw_coupon_nums'] = $CouponMember->where([['member_id','eq',$member_id]])->count('id');是什么意思」
展开阅读网页