提交 2b257cd4 编写于 作者: G gongfuxiang

wx pay

上级 aab64dd7
......@@ -210,6 +210,8 @@ class Order extends Common
public function Pay()
{
$params = input();
$params['id'] = 25;
$params['payment_id'] = 2;
$params['user'] = $this->user;
$ret = OrderService::Pay($params);
if($ret['code'] == 0)
......
......@@ -576,8 +576,7 @@ class Weixin
$input = input();
// 回调地址
$redirect_uri = urlencode(MyUrl('index/order/pay', ['id'=>$input['id'], 'payment_id'=>$input['payment_id']]));
die(MyUrl('index/order/pay', ['id'=>$input['id'], 'payment_id'=>$input['payment_id']]));
$redirect_uri = urlencode(MyUrl('index/order/pay'));
// 授权code
$url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$this->config['appid'].'&redirect_uri='.$redirect_uri.'&response_type=code&scope=snsapi_base&state=callback#wechat_redirect';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册