|
@@ -142,9 +142,7 @@ class Usersign extends Api
|
|
}
|
|
}
|
|
$data['goldnum'] = $gift['num'];
|
|
$data['goldnum'] = $gift['num'];
|
|
$data['remark'] = '签到钻石'.$gift['num'];
|
|
$data['remark'] = '签到钻石'.$gift['num'];
|
|
- $user = model('User')->find($uid);
|
|
|
|
- $userJewel = isset($user['jewel']) ? $user['jewel'] : 0;
|
|
|
|
- $rs_wallet = model('wallet')->lockChangeAccountRemain($uid,$gift['num'],'+',$userJewel,$data['remark'],16,'jewel');
|
|
|
|
|
|
+ $rs_wallet = model('wallet')->lockChangeAccountRemain($uid,$gift['num'],'+',0,$data['remark'],16,'jewel');
|
|
if (!$rs_wallet['status']) {
|
|
if (!$rs_wallet['status']) {
|
|
throw new Exception($rs_wallet['msg']);
|
|
throw new Exception($rs_wallet['msg']);
|
|
}
|
|
}
|