~~~
if($data['pay_type']=='xin_paywx'){
$res = ['bpprice'=>$data['bpprice'],'paytype'=>'2','uid'=>$data['uid'],'bpid'=>$data['bpid']];
return $res;
}
if($data['pay_type']=='xin_payqq'){
$res = ['bpprice'=>$data['bpprice'],'paytype'=>'1','uid'=>$data['uid'],'bpid'=>$data['bpid']];
return $res;
}
~~~