1
This commit is contained in:
parent
daf4647358
commit
ebc7f0aa6b
35
webapp/sdkwarpper/BaseSdk.php
Normal file
35
webapp/sdkwarpper/BaseSdk.php
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
21
webapp/sdkwarpper/UnifiedWeiXin.php
Normal file
21
webapp/sdkwarpper/UnifiedWeiXin.php
Normal 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()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
@ -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'
|
||||
),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user