Browse Source

总代奖没了

lizhen_gitee 1 year ago
parent
commit
285b1bcd4b
1 changed files with 4 additions and 3 deletions
  1. 4 3
      application/index/controller/Plantask.php

+ 4 - 3
application/index/controller/Plantask.php

@@ -122,12 +122,12 @@ class Plantask extends Controller
             }
         }
 
-
+/*
         //为上级做贡献,找到上级
         $intro_uid = Db::name('user')->where('id',$order['user_id'])->value('intro_uid');
         if(empty($intro_uid)){
             echo '没有上级,结束';
-            Db::name('unishop_order')->where('id',$order['id'])->update(['jiesuantime'=>time()]);
+            Db::name('unishop_order')->where('id',$order['id'])->update(['jiesuantime'=>$nowtime]);
             Db::commit();
             exit;
         }
@@ -141,7 +141,7 @@ class Plantask extends Controller
         $rule = $this->jiesuan_daili_level($yeji);
         if($rule['bili'] == 0){
             echo '达不到第一级,结束';
-            Db::name('unishop_order')->where('id',$order['id'])->update(['jiesuantime'=>time()]);
+            Db::name('unishop_order')->where('id',$order['id'])->update(['jiesuantime'=>$nowtime]);
             Db::commit();
             exit;
         }
@@ -165,6 +165,7 @@ class Plantask extends Controller
                 exit;
             }
         }
+*/
 
 
         //标记为结算