|
@@ -2068,9 +2068,10 @@ class OrdersController extends Controller
|
|
|
|
|
|
private function notifyXiyue($uid,$price,$type='recharge'){
|
|
|
$xiyue_user = DB::table('xiyue_zsy_users')->where('uid',$uid)->select('openid')->first();
|
|
|
- if($xiyue_user){
|
|
|
+ $xiyue_host = env('XIYUE_HOST');
|
|
|
+ if($xiyue_user && $xiyue_host){
|
|
|
$client = new Client(['timeout' => 5]);
|
|
|
- $url = env('XIYUE_HOST').'/order/success';
|
|
|
+ $url = $xiyue_host.'/order/success';
|
|
|
$param = ['openid'=>$xiyue_user->openid,'price'=>$price];
|
|
|
$param['sign'] = _sign($param,'8T5MJy4FsJoZspq8');
|
|
|
try{
|