mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Test.php
This commit is contained in:
parent
985a18a41a
commit
4b4cce93ef
@ -50,7 +50,7 @@ class Test extends Controller
|
|||||||
*/
|
*/
|
||||||
public function oauth_qrc()
|
public function oauth_qrc()
|
||||||
{
|
{
|
||||||
$url = url('@wechat/api.tools/oauth', [], false, true);
|
$url = url('@wechat/api.test/oauth', [], false, true);
|
||||||
$this->showQrc($url);
|
$this->showQrc($url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ class Test extends Controller
|
|||||||
*/
|
*/
|
||||||
public function jssdk_qrc()
|
public function jssdk_qrc()
|
||||||
{
|
{
|
||||||
$this->url = url('@wechat/api.tools/jssdk', [], false, true);
|
$this->url = url('@wechat/api.test/jssdk', [], false, true);
|
||||||
return $this->showQrc($this->url);
|
return $this->showQrc($this->url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ class Test extends Controller
|
|||||||
'out_trade_no' => time(),
|
'out_trade_no' => time(),
|
||||||
'total_fee' => '1',
|
'total_fee' => '1',
|
||||||
'trade_type' => 'NATIVE',
|
'trade_type' => 'NATIVE',
|
||||||
'notify_url' => url('@wechat/api.tools/notify', [], false, true),
|
'notify_url' => url('@wechat/api.test/notify', [], false, true),
|
||||||
'spbill_create_ip' => $this->request->ip(),
|
'spbill_create_ip' => $this->request->ip(),
|
||||||
];
|
];
|
||||||
$order = $pay->create($options);
|
$order = $pay->create($options);
|
||||||
@ -133,7 +133,7 @@ class Test extends Controller
|
|||||||
$result['sign'] = $pay->getPaySign($result);
|
$result['sign'] = $pay->getPaySign($result);
|
||||||
p('======= 来自扫码支付1返回的结果 ======');
|
p('======= 来自扫码支付1返回的结果 ======');
|
||||||
p($result);
|
p($result);
|
||||||
return \WeChat\Contracts\Tools::arr2xml($result);
|
return \WeChat\Contracts\test::arr2xml($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -152,7 +152,7 @@ class Test extends Controller
|
|||||||
'out_trade_no' => time(),
|
'out_trade_no' => time(),
|
||||||
'total_fee' => '1',
|
'total_fee' => '1',
|
||||||
'trade_type' => 'NATIVE',
|
'trade_type' => 'NATIVE',
|
||||||
'notify_url' => url('@wechat/api.tools/notify', '', true, true),
|
'notify_url' => url('@wechat/api.test/notify', [], true, true),
|
||||||
'spbill_create_ip' => request()->ip(),
|
'spbill_create_ip' => request()->ip(),
|
||||||
]);
|
]);
|
||||||
$this->showQrc($result['code_url']);
|
$this->showQrc($result['code_url']);
|
||||||
@ -167,7 +167,7 @@ class Test extends Controller
|
|||||||
*/
|
*/
|
||||||
public function jsapiQrc()
|
public function jsapiQrc()
|
||||||
{
|
{
|
||||||
$this->url = url('@wechat/api.tools/jsapi', [], false, true);
|
$this->url = url('@wechat/api.test/jsapi', [], false, true);
|
||||||
$this->showQrc($this->url);
|
$this->showQrc($this->url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ class Test extends Controller
|
|||||||
'total_fee' => '1',
|
'total_fee' => '1',
|
||||||
'openid' => $user['openid'],
|
'openid' => $user['openid'],
|
||||||
'trade_type' => 'JSAPI',
|
'trade_type' => 'JSAPI',
|
||||||
'notify_url' => url('@wechat/api.tools/notify', [], false, true),
|
'notify_url' => url('@wechat/api.test/notify', [], false, true),
|
||||||
'spbill_create_ip' => request()->ip(),
|
'spbill_create_ip' => request()->ip(),
|
||||||
];
|
];
|
||||||
// 生成预支付码
|
// 生成预支付码
|
||||||
|
Loading…
x
Reference in New Issue
Block a user