Exemple #1
0
 private function doCancel($data)
 {
     $orderId = $data['orderId'];
     $orderInfo = UserOrderModel::findOrderByOrderId($orderId);
     if (empty($orderInfo)) {
         return;
     }
     if ($orderInfo['order_state'] != UserOrderModel::ORDER_ST_CREATED) {
         return;
     }
     OrderModel::doCancelOrder($orderId, $orderInfo['user_id']);
 }
 private function doRemind($data)
 {
     $orderId = $data['orderId'];
     $orderInfo = UserOrderModel::findOrderByOrderId($orderId);
     if (empty($orderInfo)) {
         return;
     }
     if ($orderInfo['pay_state'] != PayModel::PAY_ST_UNPAY) {
         return;
     }
     if ($orderInfo['order_env'] == UserOrderModel::ORDER_ENV_WEIXIN) {
         $this->doRemindInWeinXin($orderInfo);
     }
 }