コード例 #1
0
    //获取渠道强更配置版本号,默认为0,当不改变服务器版本号和程序版本号时,通过这个值实现单独渠道强更 lihao_yd 2015-12-08
    public static int GetUpdateChannelAppConfig()
    {
#if  UNITY_WP8 && !UNITY_EDITOR
        return(WPSDKHelperScript.Instance().WPGetUpdateChannelAppConfig());
#elif UNITY_ANDROID && !UNITY_EDITOR
        string ret = AndroidHelper.platformHelper("getValue", "UPDATE_CHANNEL_APP_CONFIG_VERSION");
        return(int.Parse(ret));

        //return 0;
#elif UNITY_IPHONE && !UNITY_EDITOR
        return(IOSHelper.Common_GetUpdateChannelAppConfig());
#else
        return(0);
#endif
    }