Exemplo n.º 1
0
 def get(self):
     user_id = self.current_user_id
     account, name = pay_account_name_get(user_id, CID_PAY_ALIPAY)
     self.render(
         account=account,
         name=name,
     )
Exemplo n.º 2
0
 def get(self):
     user_id = self.current_user_id
     account, name = pay_account_name_get(user_id, CID_PAY_ALIPAY)
     self.render(
         account=account,
         name=name,
     )
Exemplo n.º 3
0
 def post(self):
     id = self.get_argument('id', '').strip()
     i = Trade.get(id)
     if not i:
         return
     body = self.request.body
     if 'reject=' in body:
         cid = i.cid
         i.account, i.name = pay_account_name_get(i.from_id, i.rid)
         txt = '%s 提现失败'%CID2CN[int(cid)]
         withdraw_fail(id, txt)
     else:
         trade_no = self.get_argument('trade_no', '').strip()
         if trade_no:
             withdraw_success(id, trade_no)
     return self.redirect('/withdraw')
Exemplo n.º 4
0
 def post(self):
     id = self.get_argument('id', '').strip()
     i = Trade.get(id)
     if not i:
         return
     body = self.request.body
     if 'reject=' in body:
         cid = i.cid
         i.account, i.name = pay_account_name_get(i.from_id, i.rid)
         txt = '%s 提现失败' % CID2CN[int(cid)]
         withdraw_fail(id, txt)
     else:
         trade_no = self.get_argument('trade_no', '').strip()
         if trade_no:
             withdraw_success(id, trade_no)
     return self.redirect('/withdraw')