根据用户的会员身份计算最终支付金额。
params(原价: Int, 是否会员: Bool)
最终价格 = 原价
首先判断用户是否有会员资格。
if 是否会员
最终价格 = 原价 * 9 // 10
else
end
返回最终应付金额。
return 最终价格