This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bridge.corelib import order_manager as om | |
from bridge.corelib import checkout_manager as cm | |
def fix_orders(oids): | |
for oid in oids: | |
o = om.get_order_by_orderid(oid) | |
c = cm.get_checkout_by_checkoutid(o.checkoutid) | |
ce = c.ext_info_proto() | |
ce.checkout_payment_info.payment_flag |= 2 | |
print cm.set_checkout_status(c.user_id, c.checkoutid, 'manual fix', operator='haiyan.huo@shopeemobile.com', status=c.status, payment_type=c.payment_type, checkout_info=ce.SerializeToString()) |
NewerOlder