if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') != false) { return redirect('/shop/weixin_inner_pay/index?order_id='.$id); } else { return redirect('/shop/Weixinpay_mobile/index?order_id='.$id); }