|
@@ -285,7 +285,8 @@ class Payios extends Api
|
|
|
$task_data['purchase_date_ms'] = $only_trans['purchase_date_ms'];
|
|
|
$task_data['expires_date_ms'] = $only_trans['expires_date_ms'];
|
|
|
|
|
|
- if($only_trans['product_id'] != $order_info_bundle_id){
|
|
|
+ //换了产品了,或者订单的user_id被改过了
|
|
|
+ if($only_trans['product_id'] != $order_info_bundle_id || $order_info['user_id'] != $order_info_user_id){
|
|
|
$task_data['times'] = 1;//回归1
|
|
|
}
|
|
|
|
|
@@ -473,6 +474,7 @@ class Payios extends Api
|
|
|
|
|
|
$token = isset($raw['signedPayload']) ? $raw['signedPayload'] : '';
|
|
|
$data = $this->verifyAppleToken($token);
|
|
|
+ dump($data);
|
|
|
|
|
|
|
|
|
|
|
@@ -483,6 +485,7 @@ class Payios extends Api
|
|
|
}
|
|
|
|
|
|
$transaction_info = $this->verifyAppleToken($data['data']['signedTransactionInfo']);
|
|
|
+ dump($transaction_info);
|
|
|
|
|
|
$rs = '默认';
|
|
|
switch ($data['notificationType']) {
|
|
@@ -511,7 +514,7 @@ class Payios extends Api
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- echo $rs;
|
|
|
+ dump($rs);
|
|
|
|
|
|
exit;
|
|
|
}catch (Exception $e) {
|