zoukankan      html  css  js  c++  java
  • ecshop开发日志之虚拟商品发送邮件通知

    购买虚拟商品,系统会在支付后自动发送邮件到用户填写的邮件地址中,追踪过程如下
    首先在订单列表中可以获得到处理订单的php文件为flow.php,之后在最后一步url地址显示为
    http://localhost/ecshop-xuni/flow.php?step=done
    从flow.php文件中找到$_REQUEST['step'] == 'done' 在其中大约1733行有
    /* 虚拟卡发货 */
     if (virtual_goods_ship($virtual_goods,$msg, $order['order_sn'], true))
    这个函数virtual_goods_ship($virtual_goods,$msg, $order['order_sn'], true) 是处理虚拟商品发货的,追踪到这个函数中
    在第二个foreach循环里有个(1024行)
    if (virtual_card_shipping($goods, $order_sn, $msg, $process))
    virtual_card_shipping($goods, $order_sn, $msg, $process) 这个函数追踪进去以后大约在1153行有发送邮件的send_mail()函数



    virtual_goods_ship()
    virtual_card_shipping()
    这两个函数都在lib_common.php里面

  • 相关阅读:
    log日志----logging模块
    配置文件--configparser
    面向对象——进阶
    面向对象
    内置函数
    模块和包
    常用模块
    正则表达式
    递归函数
    内置函数+匿名函数
  • 原文地址:https://www.cnblogs.com/azhw/p/4379089.html
Copyright © 2011-2022 走看看