end_time)){ SmartbcCouponUser::where(['member_miniapp_id' => $config->member_miniapp_id,'is_end' => 0])->where('create_time','<=',(time() - $config->end_time * 60 * 60 ))->update(['is_end' => 1]); } } } }