签约结束身价增加

This commit is contained in:
2025-12-01 15:03:05 +08:00
parent 4f48725e65
commit c310c4d833

View File

@@ -16,7 +16,7 @@ class MarketValue extends Model
*/
public function change($user_id,$change_value,$type){
$before = db::name('user')->where('id',$user_id)->value('market_value');
if($type == 0){
if($type == 0 || $type == 3){
$result = db::name('user')->where('id',$user_id)->setInc('market_value',$change_value);
if($result){
//记录一条日志