|
@@ -253,6 +253,21 @@ class Payios extends Api
|
|
|
$this->error($result['message']);
|
|
|
}
|
|
|
|
|
|
+ $in_app = $result['data']['receipt']['in_app'];
|
|
|
+
|
|
|
+ $only_trans = [];
|
|
|
+ foreach($in_app as $key => $trans){
|
|
|
+ if($trans['transaction_id'] == $transaction_id && $trans['product_id'] == $order_info['bundle_id']){
|
|
|
+ $only_trans = $trans;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(empty($only_trans)){
|
|
|
+ Db::rollback();
|
|
|
+ filePut($prefix.'未找到匹配的交易,产品id'.$order_info['bundle_id'].',交易id'.$transaction_id);
|
|
|
+ $this->error('未找到匹配的交易,产品id'.$order_info['bundle_id'].',交易id'.$transaction_id);
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
$count = count($result['data']['receipt']['in_app']);
|
|
|
$use_count = $count - 1;
|
|
|
$product_id = $result['data']['receipt']['in_app'][$use_count]['product_id'];
|
|
@@ -268,7 +283,7 @@ class Payios extends Api
|
|
|
Db::rollback();
|
|
|
filePut($prefix.'验证'.'非法请求,请立刻停止transaction_id:'.$my_transaction_id.'!='.$transaction_id);
|
|
|
$this->error('非法请求,请立刻停止,交易id错误');
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
|
|
|
//逻辑开始
|