签约身价变为负数修改

This commit is contained in:
2026-01-17 17:55:59 +08:00
parent a1010ff2c7
commit 69e3570600
2 changed files with 2 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ class MarketValue extends Model
* * @return array
*/
public function change($user_id,$change_value,$type){
$change_value = abs($change_value);
$before = db::name('user')->where('id',$user_id)->value('market_value');
if($type == 0 || $type == 3){
$result = db::name('user')->where('id',$user_id)->setInc('market_value',$change_value);