国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
932B

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