dever 6 years ago
parent
commit
dcf33d7f7f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lib/Apple.php
  2. 1 1
      src/Api.php

+ 1 - 1
lib/Apple.php

@@ -6,7 +6,7 @@ class Apple extends Core
 	/**
 	 * 检测
 	 */
-	public function check($receipt_data, $account_id, $project_id, $uid, $username, $product_id, $name, $cash, $openid = false, $type = 1, $order_id = false)
+	public function check($receipt_data, $account_id, $project_id, $uid, $username, $product_id, $name, $cash, $order_id = false)
 	{
         $this->log('苹果支付-初始化', $receipt_data);
 		if (strlen($receipt_data) < 20) {

+ 1 - 1
src/Api.php

@@ -72,7 +72,7 @@ class Api
 	{
 		$this->init($param);
 		# 只需验证苹果过来的参数即可
-		return Dever::load('pay/lib/apple')->check($this->other, $this->account_id, $this->project_id, $this->uid, $this->username, $this->product_id, $this->name, $this->cash, $this->openid, $type, $this->order_id);
+		return Dever::load('pay/lib/apple')->check($this->other, $this->account_id, $this->project_id, $this->uid, $this->username, $this->product_id, $this->name, $this->cash, $this->order_id);
 	}
 
 	/**