# 设置packageInfo的is_in_container=true # 增加一条StorageEntry # 增加一条SuccIndicator try: newEntry, receiver_id = store_package_in_container(package_id, container, fromDeliver_id, onSuccVal) except Exception, e: err = "err in store_package_in_container," + e.message return err, None # 给package的receiver发一条推送通知 # "您有一个快递到达啦!存放在<%理工大学15号宿舍楼%>快件自取箱,请您凭二维码取件。 # 如有疑问,可咨询您的派件员<%fromDeliver%>" # try: receiver_phone = get_user_phone(receiver_id) deliver_phone = get_user_phone(fromDeliver_id) ret = bmob_sms.push_msg_to_receiver(receiver_phone, deliver_phone) print "send sms ret=", ret except Exception, e: err = "err when send sms," + e.message return err, None err = None return err, [] def proc_for_receiver(code, onSuccVal): # # 根据code把一个箱子打开 try:
# coding: utf-8 from apicloudCore import get_user_phone __author__ = 'wenop' print get_user_phone("5650026495cf433010360c2b")
# 增加一条StorageEntry # 增加一条SuccIndicator try: newEntry, receiver_id = store_package_in_container( package_id, container, fromDeliver_id, onSuccVal) except Exception, e: err = "err in store_package_in_container," + e.message return err, None # 给package的receiver发一条推送通知 # "您有一个快递到达啦!存放在<%理工大学15号宿舍楼%>快件自取箱,请您凭二维码取件。 # 如有疑问,可咨询您的派件员<%fromDeliver%>" # try: receiver_phone = get_user_phone(receiver_id) deliver_phone = get_user_phone(fromDeliver_id) ret = bmob_sms.push_msg_to_receiver(receiver_phone, deliver_phone) print 'send sms ret=', ret except Exception, e: err = "err when send sms," + e.message return err, None err = None return err, [] def proc_for_receiver(code, onSuccVal): # # 根据code把一个箱子打开 try: