diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 729480b3..108e8fe5 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -463,7 +463,7 @@ class ShopController extends BaseAuthedController { public function buyGoodsDirect() { error_log('buyGoodsDirect:' . json_encode($_REQUEST)); $cbService = new CallBackService(); - $action = 'inappPurchase'; + $action = 'outappPurchase'; $cbService->dispatch($action); } diff --git a/webapp/controller/ToolsController.class.php b/webapp/controller/ToolsController.class.php index 125f0c0c..77c7b1d3 100644 --- a/webapp/controller/ToolsController.class.php +++ b/webapp/controller/ToolsController.class.php @@ -175,6 +175,8 @@ class ToolsController extends BaseController { 'c' => 'Callback', 'a' => 'dispatch', 'action' => 'outappPurchase', + //'c' => 'Shop', + //'a' => 'buyGoodsDirect', 'account_id' => getReqVal('account_id', ''), 'order_id' => $orderInfo['order_id'], 'status' => 9, diff --git a/webapp/services/CallBack.php b/webapp/services/CallBack.php index f0d2bd98..38ea1a07 100644 --- a/webapp/services/CallBack.php +++ b/webapp/services/CallBack.php @@ -18,9 +18,9 @@ class CallBackService extends BaseService { public function dispatch($action) { - error_log("CallbackController Begin"); + error_log("CallbackController Begin " . $action . ' ' . json_encode($_REQUEST)); if (key_exists($action, $this->handlers)) { - error_log("Callback:dispatch____". json_encode($_REQUEST)); + error_log("Callback:dispatch____". $action . ' ' . json_encode($_REQUEST)); $this->internalDispatch($this->handlers[$action]); } else { myself()->_rspErr(500, 'not found');