wupengfei 2 anos atrás
pai
commit
54681dd99a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      application/api/controller/Timedtask.php

+ 1 - 1
application/api/controller/Timedtask.php

@@ -43,7 +43,7 @@ class Timedtask
         $clean_set = sysconf('integral_clean');
         if($month == 11 && $clean_set != date('Y-m-d'))
         {
-            Db::name('system_config')->where(['value'=>'integral_clean'])->update(['integral_clean'=>date('Y-m-d')]);
+            Db::name('system_config')->where(['name'=>'integral_clean'])->update(['value'=>date('Y-m-d')]);
             $user_list = Db::name('store_member')->field('id,integral')->where('integral','>',0)->select();
             foreach ($user_list as $v) {
                 update_user_integral($v['id'],$v['integral']*-1,10,'积分清零');