《服务端插件开发-服务端函数参考》

编程接口

SdkLogin::checkApp()

SdkLogin::checkParams($params, $keys, $compatibaleKeys, $toCheckEmpty)

SdkLogin::getChannelId()

SdkLogin::getCustomErrors()

SdkLogin::getErrors()

SdkLogin::getFailureReturn()

SdkLogin::getHttp()

SdkLogin::getId()

SdkLogin::getParams()

SdkLogin::getPluginId()

SdkLogin::getSdkName()

SdkLogin::getSdkParameter($key)

SdkLogin::getSdkParams()

SdkLogin::getStorage ($namespace = "default")

SdkLogin::getSuccessReturn()

SdkLogin::getUrlExplodeParams()

SdkLogin::getUserId()

SdkLogin::initApp ($appId)

SdkLogin::initOfficalErrors()

SdkLogin::logAnySDKReturn($return)

SdkLogin::logAppInfo($app = array())

SdkLogin::logLoginTime()

SdkLogin::logRequestParams($params)

SdkLogin::logSdkCheckReturn($data = )

SdkLogin::logSdkCheckUrl($url, $params = null)

SdkLogin::logSdkUserId($userId = "")

SdkLogin::logSdkUserName($userName = "")

SdkLogin::noticeResponse($responseMessage = "", $noticeError = "")

SdkLogin::responseError($error, $more = null)

SdkLogin::responseSuccess($data, $more = null)

SdkLogin::returnResponse($return)

SdkLogin::setCustomErrors($errors)

SdkLogin::setId($id)

SdkLogin::setReturn($success = "", $failure = "")

SdkLogin::setSdkName($tag)

SdkLogin::setUserId($userId = "")

抽象方法

SdkLogin::init($params)

SdkLogin::toCheckParams($params)

SdkLogin::toCheckApp()

SdkLogin::toCheckLogin($params)

SdkLogin::toSetCustomErrors()

SdkLogin::toSetUserId($userId)

SdkLogin::check($params)

支付通知SdkPayNotice

编程接口

SdkPayNotice::getSdkParameter($key)

SdkPayNotice::setOrderType($orderType)

SdkPayNotice::getOrderType()

SdkPayNotice::setReturn($success = "", $failure = "")

SdkPayNotice::getSuccessReturn()

SdkPayNotice::getFailureReturn()

SdkPayNotice::setPayStatusSuccess()

SdkPayNotice::setPayStatusFail()

SdkPayNotice::getPayStatus()

SdkPayNotice::getLastError()

SdkPayNotice::getUrlExplodeParams()

SdkPayNotice::logNoticeTime()

SdkPayNotice::logRequestParams($params)

SdkPayNotice::logOrderId($orderId)

SdkPayNotice::logAnySDKReturn($return)

SdkPayNotice::checkParams($params, $keys, $toCheckEmpty = false)

SdkPayNotice::checkApp()

SdkPayNotice::initApp($appId)

SdkPayNotice::checkOrder()

SdkPayNotice::notifyGameServer()

SdkPayNotice::getStorage ($namespace = "default")

SdkPayNotice::getOrderEntity ()

SdkPayNotice::getNewOrderId (OrderEntity $order_entity)

SdkPayNotice::mappingOrderIdOrNew ($channelOrderId, $order_type, $AnySDKOrderId)

SdkPayNotice::noticeResponse($responseMessage = "", $noticeError = "")

SdkPayNotice::urldecodeParams($params = array())

SdkPayNotice::currencyConvertToCNY ($origin_amount, $origin_currency_code = "USD")

SdkPayNotice::get_yahoo_currencies ()

SdkPayNotice::xml_object_to_array ($xml_obj)

SdkPayNotice::getOrderDataByOrderId($order_id = "")

抽象方法

SdkPayNotice::init($params);

SdkPayNotice::toCheckParams($params);

SdkPayNotice::toCheckApp($params);

SdkPayNotice::toCheckSign($params);

SdkPayNotice::toSetPayStatus($params);

SdkPayNotice::toCheckOrder($params);

SdkPayNotice::toNotifyGameServer();

SdkPayNotice::payNotice($params);

H5插件服务端接口

编程接口

AnyH5_PluginsServer::getCocosplayId()

AnyH5_PluginsServer::getDebugMode()

AnyH5_PluginsServer::getEnhancedSign(array $params)

AnyH5_PluginsServer::getFailureReturn(String $append)

AnyH5_PluginsServer::getHttp()

AnyH5_PluginsServer::getLastError()

AnyH5_PluginsServer::getNoticeEntity(String $notice_type)

AnyH5_PluginsServer::getOrderUrl()

AnyH5_PluginsServer::getPrivateKey()

AnyH5_PluginsServer::getSdkParameter(String $name)

AnyH5_PluginsServer::getStorage()

AnyH5_PluginsServer::getSuccessReturn()

AnyH5_PluginsServer::getUapiSecret()

AnyH5_PluginsServer::jsonpResponseFailure($js_propname, $data, $custom_error_msg)

AnyH5_PluginsServer::jsonpResponseSuccess($js_propname, $data)

AnyH5_PluginsServer::logRequestParams($params)

AnyH5_PluginsServer::noticeDuplicatedOrSave($key, $noticeParams, $status, $noticeType)

AnyH5_PluginsServer::noticeResponse($resp_msg, $error_msg)

AnyH5_PluginsServer::notifyGameServer($url, $notice_entity, $notice_type)

AnyH5_PluginsServer::setLastError($last_error)

AnyH5_PluginsServer::setSdkName(String $sdk_name)