原来PHPCMS的支付和定单模块是这样的,必需预存钱到网站,然后根据网站余额来支付,最近公司觉得这个环境是多的,没有必要让用户事先存钱进来,所以需要小改动一下,在pay_user_account增加一个orderid 字段

  然后pay的responsd.php中

 

 if ($result)
  {
   $r=get_order($out_trade_no);
            showmessage('支付成功',$PHPCMS['siteurl'].'order/index.php?dosubmit=1&action=pay&orderid='.$r[orderid]);
  }

 

 

 

相关文章:

  • 2021-08-07
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2021-08-22
  • 2021-11-11
  • 2021-07-21
猜你喜欢
  • 2022-12-23
  • 2021-06-19
  • 2022-02-05
  • 2022-01-05
  • 2022-12-23
  • 2021-09-16
  • 2021-07-19
相关资源
相似解决方案