作者 何书鹏

bug修改

@@ -65,7 +65,7 @@ class Notify extends Api @@ -65,7 +65,7 @@ class Notify extends Api
65 $user->invite_status = '1'; 65 $user->invite_status = '1';
66 $user->isUpdate()->save(); 66 $user->isUpdate()->save();
67 $coupon = Db::name('coupon')->find(); 67 $coupon = Db::name('coupon')->find();
68 - if ($coupon['endtime'] < time()){ 68 + if ($coupon['endtime'] > time()){
69 $data = []; 69 $data = [];
70 $time = time(); 70 $time = time();
71 for ($i=1;$i<=$coupon['send_number'];$i++){ 71 for ($i=1;$i<=$coupon['send_number'];$i++){