浏览代码

礼物墙展示

lizhen_gitee 1 年之前
父节点
当前提交
52799582f3

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

@@ -116,7 +116,7 @@ class Takecash extends Api
 
     //提现记录
     public function take_cash_log(){
-        $list = Db::name('take_cash')->field('id,jewel,money,type,createtime')->where(['user_id'=>$this->auth->id])->autopage()->select();
+        $list = Db::name('take_cash')->field('acount_json',true)->where(['user_id'=>$this->auth->id])->autopage()->select();
         foreach($list as $key => &$val){
             $val['remark'] = '';
 

+ 2 - 2
application/common/controller/Api.php

@@ -526,10 +526,10 @@ class Api
     //用户是否有某项权限
     //1有,0没有
     protected function user_power($user_id,$power = ''){
-        $is_vip = $this->is_vip($user_id);
+        /*$is_vip = $this->is_vip($user_id);
         if($is_vip != 1){
             return 0;
-        }
+        }*/
         $power = db('user_power')->where('user_id',$user_id)->value($power);
         return $power;
 

+ 2 - 2
application/index/controller/Plantask.php

@@ -25,8 +25,8 @@ class Plantask extends Controller
 //        $sql = 'update `mt_user_power` set yinsi = 0,yinshen = 0,wuhen = 0 where user_id in (select user_id from mt_user_wallet where vip_endtime > 0 and vip_endtime < '.time().')';
 //        db()->query($sql);
 
-        $sql2 = 'update `mt_user` set is_vip = 0 where is_vip = 1 and user_id in (select user_id from mt_user_wallet where vip_endtime > 0 and vip_endtime < '.time().')';
-        db()->query($sql2);
+        /*$sql2 = 'update `mt_user` set is_vip = 0 where is_vip = 1 and user_id in (select user_id from mt_user_wallet where vip_endtime > 0 and vip_endtime < '.time().')';
+        db()->query($sql2);*/
     }