|
@@ -992,8 +992,13 @@ class ElectPool Extends Model
|
|
$data['to_user_id'] = $user_id;
|
|
$data['to_user_id'] = $user_id;
|
|
Db::startTrans();
|
|
Db::startTrans();
|
|
try {
|
|
try {
|
|
- User::integral($integral,$user['id'],'想查看 '.$touser['nickname'].'资料');
|
|
|
|
|
|
+ $get_check_money = Config::get_values('get_check_money');
|
|
|
|
+ // $get_price = sprintf("%.2f",substr(sprintf("%.3f", ($integral*($get_check_money/100))), 0, -2));
|
|
|
|
+ $get_price = round($integral*($get_check_money/100));
|
|
|
|
+ $data['get_price'] = $get_price;
|
|
$data['integral'] = $integral;
|
|
$data['integral'] = $integral;
|
|
|
|
+ User::integral($integral,$user['id'],'想查看 '.$touser['nickname'].'资料');
|
|
|
|
+ User::integral($get_price,$user_id,'被查看资料',1);
|
|
UserPay::create($data);
|
|
UserPay::create($data);
|
|
Db::commit();
|
|
Db::commit();
|
|
return Common::return_success('成功');
|
|
return Common::return_success('成功');
|