Example #1
0
 private function doRemindInWeinXin($orderInfo)
 {
     $wxUserInfo = WxUserModel::findUserByUserId($orderInfo['user_id']);
     if (empty($wxUserInfo['openid'])) {
         return;
     }
     if (time() - $wxUserInfo['atime'] < 48 * 3600) {
         $content = '亲,您有一个未支付订单,请您及时付款以免过期\\n\\n' . '<a href=\\"' . APP_URL_BASE . '/User/MyOrder/toPay' . '\\">' . '前往支付>>' . '</a>';
         AsyncModel::asyncSendKfMsg($wxUserInfo['openid'], 'text', $content, 0);
     }
 }