改进 语义

This commit is contained in:
iVampireSP.com 2022-10-02 21:29:59 +08:00
parent b7c54413ba
commit dec8ef5874
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -48,11 +48,11 @@ public function handle()
$user = User::find($user_id); $user = User::find($user_id);
$this->warn('扣除金额: ' . $user->balance); $this->warn('扣除金额: ' . $user->balance . ' 元');
$this->warn('用户当前余额:' . $user->balance); $this->warn('用户当前余额:' . $user->balance . ' 元');
$this->warn('剩余余额:' . $user->balance - $amount); $this->warn('剩余余额:' . $user->balance -$amount . ' 元');
$confirm = $this->confirm('确认扣除?'); $confirm = $this->confirm('确认扣除?');
@ -62,7 +62,7 @@ public function handle()
$this->info('扣除成功。'); $this->info('扣除成功。');
} else { } else {
$this->info('取消扣除'); $this->info('取消扣除');
} }
} }
} }