dever 7 éve
szülő
commit
2c0bab0b50
2 módosított fájl, 3 hozzáadás és 3 törlés
  1. 1 1
      lib/Core.php
  2. 2 2
      lib/Wechat.php

+ 1 - 1
lib/Core.php

@@ -44,7 +44,7 @@ class Core
 	protected function createOrder($uid, $username, $account_id, $product_id, $name, $cash, $type)
 	{
 		$db = Dever::db('pay/order');
-		$order_id = Dever::order(Dever::uid($uid));
+		$order_id = Dever::order();
 		$info = $db->one(array('order_id' => $order_id));
 		if ($info) {
 			return $this->createOrder();

+ 2 - 2
lib/Wechat.php

@@ -17,7 +17,7 @@ class Wechat extends Core
 			'key' => $config['file_key'],
 		);
 
-		$this->config->set($config['appid'], $config['appsecret'], $config['mchid'], $config['notify'], $config['key'], $config['ssl'], $config['type'], $config['timeout']);
+		$this->config->set($config['appid'], $config['appsecret'], $config['mchid'], $config['notify'], '9fe92408a8a9be1e51aa4945142fdb6f5bdffad4', $config['ssl'], $config['type'], $config['timeout']);
 	}
 
 	/**
@@ -53,7 +53,7 @@ class Wechat extends Core
 		if ($type == 1) {
 			$order = \WxPayApi::unifiedOrder($this->config, $input);
 			# 下单信息
-			$this->updateOrderParam($order_id, $order);
+			$this->updateOrderParam($order_id, $ordzer);
 			return array($order_id, $order);
 		} else {
 			# 下单信息