1
This commit is contained in:
parent
4e4170e27d
commit
d262d4e992
@ -6,7 +6,7 @@ use phpcommon;
|
|||||||
|
|
||||||
class OrderCtrl {
|
class OrderCtrl {
|
||||||
|
|
||||||
protected function getRedis()
|
private function getRedis()
|
||||||
{
|
{
|
||||||
$redis_conf = getGlobalRedisConfig();
|
$redis_conf = getGlobalRedisConfig();
|
||||||
$r = new phpcommon\Redis(array(
|
$r = new phpcommon\Redis(array(
|
||||||
@ -17,7 +17,7 @@ class OrderCtrl {
|
|||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getMysql()
|
private function getMysql()
|
||||||
{
|
{
|
||||||
$mysql_conf = getMysqlConfig();
|
$mysql_conf = getMysqlConfig();
|
||||||
$conn = new phpcommon\Mysql(array(
|
$conn = new phpcommon\Mysql(array(
|
||||||
@ -30,6 +30,11 @@ class OrderCtrl {
|
|||||||
return $conn;
|
return $conn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function genOrderId($account_id)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public function getOrderByCpOrderId($orderid)
|
public function getOrderByCpOrderId($orderid)
|
||||||
{
|
{
|
||||||
$conn = $this->getMysql();
|
$conn = $this->getMysql();
|
||||||
|
@ -34,7 +34,7 @@ class UnifiedWeiXin extends BaseSdk {
|
|||||||
$this->real_channel = phpcommon\extractChannelId($_REQUEST['account_id']);
|
$this->real_channel = phpcommon\extractChannelId($_REQUEST['account_id']);
|
||||||
$this->loadConfig();
|
$this->loadConfig();
|
||||||
|
|
||||||
$cp_orderid = $this->order_ctrl->genOrderId();
|
$cp_orderid = $this->order_ctrl->genOrderId($_REQUEST['account_id']);
|
||||||
{
|
{
|
||||||
$this->order_ctrl->addPreOrder(
|
$this->order_ctrl->addPreOrder(
|
||||||
array(
|
array(
|
||||||
@ -42,6 +42,7 @@ class UnifiedWeiXin extends BaseSdk {
|
|||||||
'account_id' => $_REQUEST['account_id'],
|
'account_id' => $_REQUEST['account_id'],
|
||||||
'roleid' => '',
|
'roleid' => '',
|
||||||
'server_id' => 0,
|
'server_id' => 0,
|
||||||
|
'price' => 101,
|
||||||
'poly_sdk_channel' => $this->poly_sdk_channel,
|
'poly_sdk_channel' => $this->poly_sdk_channel,
|
||||||
'unified_channel' => $this->unified_channel,
|
'unified_channel' => $this->unified_channel,
|
||||||
'itemid' => $itemid,
|
'itemid' => $itemid,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user