1
This commit is contained in:
parent
7b356dbcd5
commit
79922b2781
@ -15,6 +15,7 @@ require_once('services/AwardService.php');
|
||||
require_once('services/PropertyChgService.php');
|
||||
require_once('services/ShopService.php');
|
||||
require_once('services/LogService.php');
|
||||
require_once('services/CallBack.php');
|
||||
|
||||
use mt\Shop;
|
||||
use mt\ShopChest;
|
||||
@ -27,9 +28,21 @@ use models\OutAppOrder;
|
||||
|
||||
use services\LogService;
|
||||
use services\ShopService;
|
||||
use services\CallBackService;
|
||||
|
||||
class ShopController extends BaseAuthedController {
|
||||
|
||||
public function _handlePre()
|
||||
{
|
||||
$a = getReqVal('a', '');
|
||||
if (
|
||||
$a != 'buyGoodsDirect' &&
|
||||
$a != 'inappPurchaseDiamonds'
|
||||
) {
|
||||
parent::_handlePre();
|
||||
}
|
||||
}
|
||||
|
||||
public function getGoodsList()
|
||||
{
|
||||
$shopId = getReqVal('shop_id', 0);
|
||||
@ -408,4 +421,19 @@ class ShopController extends BaseAuthedController {
|
||||
}
|
||||
}
|
||||
|
||||
public function buyGoodsDirect() {
|
||||
error_log('buyGoodsDirect:' . json_encode($_REQUEST));
|
||||
$cbService = new CallBackService();
|
||||
$action = 'inappPurchase';
|
||||
$cbService->dispatch($action);
|
||||
}
|
||||
|
||||
public function inappPurchaseDiamonds()
|
||||
{
|
||||
error_log('inappPurchaseDiamonds:' . json_encode($_REQUEST));
|
||||
$cbService = new CallBackService();
|
||||
$action = 'outappPurchase';
|
||||
$cbService->dispatch($action);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user