www.gusucode.com > Ectouch手机端网购商城系统PHP版源码程序 > ectouch/plugins/payment/cod.php

    <?php

/**
 * ECTouch Open Source Project
 * ============================================================================
 * Copyright (c) 2012-2014 http://ectouch.cn All rights reserved.
 * ----------------------------------------------------------------------------
 * 文件名称:cod.php
 * ----------------------------------------------------------------------------
 * 功能描述:货到付款
 * ----------------------------------------------------------------------------
 * Licensed ( http://www.ectouch.cn/docs/license.txt )
 * ----------------------------------------------------------------------------
 */

/* 访问控制 */
defined('IN_ECTOUCH') or die('Deny Access');

$payment_lang = ROOT_PATH . 'plugins/payment/language/' .C('lang'). '/'.basename(__FILE__);

if (file_exists($payment_lang)){
    include_once($payment_lang);
    L($_LANG);
}

/* 模块的基本信息 */
if (isset($set_modules) && $set_modules == TRUE)
{
    $i = isset($modules) ? count($modules) : 0;
    /* 代码 */
    $modules[$i]['code']    = basename(__FILE__, '.php');
    /* 描述对应的语言项 */
    $modules[$i]['desc']    = 'cod_desc';
    /* 是否支持货到付款 */
    $modules[$i]['is_cod']  = '1';
    /* 是否支持在线支付 */
    $modules[$i]['is_online']  = '0';
    /* 支付费用,由配送决定 */
    $modules[$i]['pay_fee'] = '0';
    /* 作者 */
    $modules[$i]['author']  = 'ECSHOP TEAM';
    /* 网址 */
    $modules[$i]['website'] = 'http://www.ecshop.com';
    /* 版本号 */
    $modules[$i]['version'] = '1.0.0';
    /* 配置信息 */
    $modules[$i]['config']  = array();
    return;
}

/**
 * 货到付款类
 */
class cod
{

    /**
     * 提交函数
     */
    function get_code()
    {
        return '';
    }

    /**
     * 处理函数
     */
    function response()
    {
        return;
    }
}

?>