Forráskód Böngészése

亲密度不除100了

lizhen_gitee 11 hónapja
szülő
commit
901d06e6cd
1 módosított fájl, 0 hozzáadás és 3 törlés
  1. 0 3
      application/common/model/User.php

+ 0 - 3
application/common/model/User.php

@@ -291,9 +291,6 @@ class User extends Model
     public static function add_intimacy($uid = 0, $other_uid = 0, $value = 0) {
         if($value <= 0) return true;
 
-        $value = bcdiv($value,100,1);
-        if($value <= 0) return true;
-
         //增加亲密度
         $level_remark = ''; //亲密度等级是否变动: 0未变动 >0是亲密度等级
         $user_intimacy_info = Db::name('user_intimacy')->where(['uid' => $uid, 'other_uid' => $other_uid])->find();