cod.php
834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
if(!defined('DEDEINC')) exit('Request Error!');
/**
* 货到付款支付接口
*/
/**
* 基本接口类
*/
class Cod
{
/**
* 构造函数
*
* @access public
* @param
*
* @return void
*/
function Cod()
{
}
function __construct()
{
$this->Cod();
}
/**
* 设置回送地址
*/
function SetReturnUrl($returnurl='')
{
return "";
}
/**
* 获取代码
*/
function GetCode($order)
{
require_once DEDEINC.'/shopcar.class.php';
$cart = new MemberShops();
$cart->clearItem();
$cart->MakeOrders();
$button="您可以 <a href='/'>返回首页</a> 或去 <a href='../member/shops_products.php?oid=".$order."'>查看订单</a>";
return $button;
}
}//End API