|
@@ -22,7 +22,7 @@ class Api
|
|
|
return $order;
|
|
|
}
|
|
|
}
|
|
|
- return $this->method->order($this->account_id, $this->uid, $this->username, $this->product_id, $this->name, $this->cash, $this->openid, $type, $this->order_id);
|
|
|
+ return $this->method->order($this->account_id, $this->project_id, $this->uid, $this->username, $this->product_id, $this->name, $this->cash, $this->openid, $type, $this->order_id);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -89,6 +89,7 @@ class Api
|
|
|
return;
|
|
|
}
|
|
|
$this->account_id = $this->getParam($param, 'account_id');
|
|
|
+ $this->project_id = $this->getParam($param, 'project_id');
|
|
|
$this->uid = $this->getParam($param, 'uid');
|
|
|
$this->username = $this->getParam($param, 'username');
|
|
|
$this->product_id = $this->getParam($param, 'product_id');
|
|
@@ -98,6 +99,10 @@ class Api
|
|
|
$this->order_id = $this->getParam($param, 'order_id');
|
|
|
$this->openid = $this->getParam($param, 'openid');
|
|
|
|
|
|
+ if (!$this->project_id) {
|
|
|
+ $this->project_id = false;
|
|
|
+ }
|
|
|
+
|
|
|
if (!$this->order_id) {
|
|
|
$this->order_id = false;
|
|
|
}
|