def get(self,request, data): response = super(OrderSuccess, self) if response.checkUserLogin(request): return response.get(request) success = False temp = decrypt(data).split(";") self.user_oder = temp[4] if temp[5]=='success': success = True self.page_title = "訂購成功" else: success = False self.page_title = "訂購失敗" return response.get(request, product_name=temp[0], success=success, type_id=temp[1])
def get(self, request,base64string): username = decrypt(base64string) response = super(VVerification, self).get(request, passed = checkUser(username)) response.delete_cookie('user_data',path='/') return response