我想在支付成功以后怎么跳转到其他界面
ksort($pars, SORT_STRING);
$string1 = '';
foreach ($pars as $k => $v) {
$string1 .= "{$k}={$v}&";
}
$string1 .= "key=" . $mchkey;
$pars['sign'] = strtoupper(hash_hmac("sha256",$string1 ,$mchkey));
$xml = array2xml($pars);
$client = new \GuzzleHttp\Client(['timeout'=>30,'verify'=>false]);
$response = $client->request('POST',"https://api.mch.weixin.qq.com/secapi/pay/profitsharingreturn",['body'=>$xml,'cert'=>$sslcert,'ssl_key'=>$sslkey]);
$info = $response->getBody()->getContents();
$resp = (array)(simplexml_load_string($info,'SimpleXMLElement', LIBXML_NOCDATA));
if($resp['return_code'] == 'SUCCESS' && $resp['result']=='SUCCESS'){
Db::name('wxpay_log')->where('aid',$aid)->where('ordernum',$ordernum)->update(['isfenzhang'=>3]);
wx.navigateTo