|
@@ -90,12 +90,14 @@ class UserExtract extends BaseModel
|
|
|
$uid = $data['uid'];
|
|
$uid = $data['uid'];
|
|
|
if ($data['type'] == 1){
|
|
if ($data['type'] == 1){
|
|
|
$str = 'integral';
|
|
$str = 'integral';
|
|
|
|
|
+ $s = '静态';
|
|
|
}else{
|
|
}else{
|
|
|
$str = 'dynamic_integral';
|
|
$str = 'dynamic_integral';
|
|
|
|
|
+ $s = '动态';
|
|
|
}
|
|
}
|
|
|
$status = -1;
|
|
$status = -1;
|
|
|
$User = User::where('uid', $uid)->find()->toArray();
|
|
$User = User::where('uid', $uid)->find()->toArray();
|
|
|
- UserBill::income('提现失败', $uid, $str, 'th_extract', $extract_number, $id, bcadd($User['now_money'], $extract_number, 2), $mark);
|
|
|
|
|
|
|
+ UserBill::income($s.'提现失败', $uid, $str, 'th_extract', $extract_number, $id, bcadd($User['now_money'], $extract_number, 2), $mark);
|
|
|
User::bcInc($uid, $str, $extract_number, 'uid');
|
|
User::bcInc($uid, $str, $extract_number, 'uid');
|
|
|
if ($data['type'] == 2){
|
|
if ($data['type'] == 2){
|
|
|
User::bcDec($uid, 'contribution', $extract_number * sys_config('contribution')/100, 'uid');
|
|
User::bcDec($uid, 'contribution', $extract_number * sys_config('contribution')/100, 'uid');
|