初始版本可以去申请电子版权和软著了
This commit is contained in:
@@ -98,8 +98,16 @@ export class GoodsComp extends Component {
|
||||
}else if(this.goodsData.c_type==CType.FREE){
|
||||
this.do_free()
|
||||
}else if(this.goodsData.c_type==CType.DIAMOND){
|
||||
if(smc.data.diamond<this.goodsData.cast){
|
||||
oops.gui.toast("钻石不足")
|
||||
return
|
||||
}
|
||||
this.do_diamond_cast()
|
||||
}else if(this.goodsData.c_type==CType.GOLD){
|
||||
if(smc.data.gold<this.goodsData.cast){
|
||||
oops.gui.toast("金币不足")
|
||||
return
|
||||
}
|
||||
this.do_gold_cast()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user