|
@@ -156,9 +156,9 @@ class Gift extends Api
|
|
|
$res_wealth = \app\common\model\User::add_charm_level($user_id,$giftvalue);
|
|
|
//增加亲密度
|
|
|
if ($this->auth->id > $user_id) { //大的在后
|
|
|
- \app\common\model\User::add_intimacy($user_id,$this->auth->id);
|
|
|
+ \app\common\model\User::add_intimacy($user_id,$this->auth->id,$giftvalue);
|
|
|
} else { //小的在前
|
|
|
- \app\common\model\User::add_intimacy($this->auth->id,$user_id);
|
|
|
+ \app\common\model\User::add_intimacy($this->auth->id,$user_id,$giftvalue);
|
|
|
}
|
|
|
|
|
|
|