|
@@ -2068,7 +2068,13 @@ 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){
|
|
|
-
|
|
|
+ $client = new Client(['timeout' => 5]);
|
|
|
+ $url = '';
|
|
|
+ $param = ['openid'=>$xiyue_user->openid,'price'=>$price];
|
|
|
+ $param['sign'] = _sign($param,'xxx');
|
|
|
+ try{
|
|
|
+ $client->request('post',$url,['form_params'=>$param])->getBody()->getContents();
|
|
|
+ }catch (\Exception $e){}
|
|
|
}
|
|
|
}
|
|
|
}
|