|
@@ -79,7 +79,12 @@ class Api
|
|
|
$method = $method[1];
|
|
|
$param['other'] = $receipt;
|
|
|
}
|
|
|
- return $this->$method($param);
|
|
|
+ $result = array();
|
|
|
+ $result['order'] = $this->$method($param);
|
|
|
+ $result['order_id'] = $this->method->order_id;
|
|
|
+ $result['type'] = $this->type;
|
|
|
+
|
|
|
+ return $result;
|
|
|
} else {
|
|
|
Dever::alert('错误的source');
|
|
|
}
|
|
@@ -130,7 +135,7 @@ class Api
|
|
|
public function page($param = array())
|
|
|
{
|
|
|
$this->init($param);
|
|
|
- if (!$this->refer) {
|
|
|
+ if (!$this->refer && $this->type != 'test') {
|
|
|
Dever::alert('没有回调refer');
|
|
|
}
|
|
|
$type = 1;
|
|
@@ -290,6 +295,8 @@ class Api
|
|
|
$pay['type'] = 'test';
|
|
|
}
|
|
|
|
|
|
+ $this->type = $pay['type'];
|
|
|
+
|
|
|
$method = '\\Pay\\Lib\\' . ucwords($pay['type']);
|
|
|
if (isset($this->refer) && $this->refer) {
|
|
|
$pay['refer'] = $this->refer;
|