I'm sure this question has long been figured out, but the probable solution would be to move buyCard(); to above dialog.dismiss();.
確定! 回上一頁