|
@@ -24,10 +24,10 @@ class Pay extends Controller{
|
|
// $data['u'] = 1704251601802555535;
|
|
// $data['u'] = 1704251601802555535;
|
|
|
|
|
|
$iapInfo = Db::name('iap_config')->where(['item_id'=>$data['i']])->find();
|
|
$iapInfo = Db::name('iap_config')->where(['item_id'=>$data['i']])->find();
|
|
- if(empty($iapInfo)) exit(json(['error'=>1111]));
|
|
|
|
|
|
+ if(empty($iapInfo)) return (json(['error'=>1111]));
|
|
|
|
|
|
$plugin = $this->payPluginModel->getPayPluginByType($data['t']);
|
|
$plugin = $this->payPluginModel->getPayPluginByType($data['t']);
|
|
- if(empty($plugin)) exit(json(['error'=>1111]));
|
|
|
|
|
|
+ if(empty($plugin)) return (json(['error'=>1111]));
|
|
|
|
|
|
$biz_content = $this->getAliTradeInfo($iapInfo, $data['u']);
|
|
$biz_content = $this->getAliTradeInfo($iapInfo, $data['u']);
|
|
$val = $this->getAliPayInfo($plugin, $biz_content);
|
|
$val = $this->getAliPayInfo($plugin, $biz_content);
|