|
@@ -33,10 +33,10 @@ class Wechat extends Core
|
|
|
/**
|
|
|
* 获取统一下单的基本信息
|
|
|
*/
|
|
|
- public function order($account_id, $uid, $username, $product_id, $name, $cash, $openid = false, $type = 1, $order_id = false)
|
|
|
+ public function order($account_id, $project_id, $uid, $username, $product_id, $name, $cash, $openid = false, $type = 1, $order_id = false)
|
|
|
{
|
|
|
$trade_type = $this->getType($type);
|
|
|
- $order_id = $this->createOrder($uid, $username, $account_id, $product_id, $name, $cash, $this->config->GetType(), $order_id);
|
|
|
+ $order_id = $this->createOrder($uid, $username, $account_id, $project_id, $product_id, $name, $cash, $this->config->GetType(), $order_id);
|
|
|
$tools = new \JsApiPay($this->config);
|
|
|
$openid = $openid ? $openid : $tools->GetOpenid();
|
|
|
$input = new \WxPayUnifiedOrder();
|