This commit is contained in:
aozhiwei 2020-10-19 11:42:33 +08:00
parent daf4647358
commit ebc7f0aa6b
3 changed files with 57 additions and 1 deletions

View File

@ -0,0 +1,35 @@
<?php
namespace sdkwarpper;
require 'classes/OrderCtrl.php';
use phpcommon;
use classes;
class BaseSdk
{
protected $channel = '0';
protected $gameid = 0;
protected $order_ctrl = null;
function __construct()
{
$this->order_ctrl = new classes\OrderCtrl();
}
public function preOrder()
{
}
public function payNotify()
{
}
public function queryOrderInfo()
{
}
}

View File

@ -0,0 +1,21 @@
<?php
namespace sdkwarpper;
require 'BaseSdk.php';
use phpcommon;
use classes;
class UnifiedWeiXin extends BaseSdk {
function __construct()
{
$this->channel = UNIFIED_WEIXIN_CHANNEL;
}
public function preOrder()
{
}
}

View File

@ -5,7 +5,7 @@ namespace sdkwarpper;
$g_platform_sdk_hash = array(
UNIFIED_WEIXIN_CHANNEL => array(
'channel' => UNIFIED_WEIXIN_CHANNEL,
'sdk_file' => 'unified_weixin.php',
'sdk_file' => 'UnifiedWeiXin.php',
'class' => 'UnifiedWeiXin'
),
);