|
|
|
@ -132,6 +132,26 @@ class Server |
|
|
|
|
return $url; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @notes:申请设置订单页path信息 |
|
|
|
|
* @param array $appid |
|
|
|
|
* @param string $path |
|
|
|
|
* @return mixed |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function applySetOrderPathInfo(array $appid, string $path = 'pages/order/index') |
|
|
|
|
{ |
|
|
|
|
$token = $this->getComponentAccessToken(); |
|
|
|
|
$data['access_token'] = $token; |
|
|
|
|
$data['batch_req'] = [ |
|
|
|
|
'path' => $path, |
|
|
|
|
'appid_list' => $appid, |
|
|
|
|
]; |
|
|
|
|
$url = "https://api.weixin.qq.com/wxa/security/applysetorderpathinfo?component_access_token=$token"; |
|
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
|
return json_decode($result, true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @notes:获取预授权码 |
|
|
|
|
* @return false|mixed |
|
|
|
@ -626,6 +646,8 @@ class Server |
|
|
|
|
if ($this->modifyJumpDomain($appid)) { |
|
|
|
|
$up['jump_domain_status'] = 1; |
|
|
|
|
} |
|
|
|
|
//设置订单页path信息 |
|
|
|
|
$this->applySetOrderPathInfo([$appid]); |
|
|
|
|
if ($up) { |
|
|
|
|
$model = new WxserverAccount(); |
|
|
|
|
$model->update($up, ['appid' => $appid]); |
|
|
|
|