wx pay
parent
aab64dd731
commit
2b257cd496
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in New Issue