|
@@ -6,13 +6,14 @@ class Apple extends Core
|
|
|
/**
|
|
|
* 检测
|
|
|
*/
|
|
|
- public function check($receipt_data, $order_id, $cash = 0)
|
|
|
+ public function check($receipt_data, $account_id, $project_id, $uid, $username, $product_id, $name, $cash, $openid = false, $type = 1, $order_id = false)
|
|
|
{
|
|
|
$this->log('苹果支付-初始化', $receipt_data);
|
|
|
if (strlen($receipt_data) < 20) {
|
|
|
$this->updateOrder($order_id, $cash, '参数非法');
|
|
|
Dever::alert('参数非法');
|
|
|
}
|
|
|
+ $order_id = $this->createOrder($uid, $username, $account_id, $project_id, $product_id, $name, $cash, $type, $order_id);
|
|
|
$result = $this->curl($receipt_data);
|
|
|
|
|
|
//如果是沙盒数据 则验证沙盒模式
|