lizhihui

更新oaid统计

Showing 97 changed files with 641 additions and 578 deletions
{
"supplier":{
"vivo":{
"appid":"100215079"
},
"xiaomi":{
},
"huawei":{
},
"oppo":{
}
}
}
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<Objective-C-extensions>
<file>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Import" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Macro" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Typedef" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Enum" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Constant" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Global" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Struct" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="FunctionPredecl" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Function" />
</file>
<class>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Property" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Synthesize" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InitMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="StaticMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InstanceMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="DeallocMethod" />
</class>
<extensions>
<pair source="cpp" header="h" fileNamingConvention="NONE" />
<pair source="c" header="h" fileNamingConvention="NONE" />
</extensions>
</Objective-C-extensions>
</code_scheme>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<compositeConfiguration>
<compositeBuild compositeDefinitionSource="SCRIPT" />
</compositeConfiguration>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Demo_PoolSdk</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.python.pydev.PyDevBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.python.pydev.pythonNature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
</pydev_project>
connection.arguments=
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.java.home=null
connection.jvm.arguments=
connection.project.dir=
derived.resources=.gradle,build
eclipse.preferences.version=1
project.path=\:
eclipse.preferences.version=1
encoding/<project>=UTF-8
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.source=1.6
@echo off
cd /d %~dp0
"%ANT_ROOT%\bin\ant" clean release -f build.xml
pause
\ No newline at end of file
# This file is used to override default values used by the Ant build system.
#
# This file must be checked into Version Control Systems, as it is
# integral to the build system of your project.
# This file is only used by the Ant script.
# You can use this to override default values such as
# 'source.dir' for the location of your java source folder and
# 'out.dir' for the location of your output folder.
# You can also use it define how the release builds are signed by declaring
# the following properties:
# 'key.store' for the location of your keystore and
# 'key.alias' for the name of the key to use.
# The password will be asked during the build when you use the 'release' target.
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>sdk_3</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.aptana.editor.php.aptanaPhpBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.aptana.ide.core.unifiedBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.aptana.projects.webnature</nature>
<nature>com.aptana.editor.php.phpNature</nature>
</natures>
<filteredResources>
<filter>
<id>1489975865951</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-node_modules</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
This diff is collapsed. Click to expand it.
20170815
\ No newline at end of file
SERVER_URL=http://sdk.i9133.com
CDN_SERVER_URL=http://cdn.i9133.com
SDK_TYPE=.sys_config_9133
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project name="PoolSdk" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />
<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
This is the place to change some Ant specific build properties.
Here are some properties you may want to change/update:
source.dir
The name of the source directory. Default is 'src'.
out.dir
The name of the output directory. Default is 'bin'.
For other overridable properties, look at the beginning of the rules
files in the SDK, at tools/ant/build.xml
Properties related to the SDK location or the project target should
be updated using the 'android' tool with the 'update' action.
This file is an integral part of the build system for your
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />
<!-- if sdk.dir was not set from one of the property file, then
get it from the ANDROID_HOME env var.
This must be done before we load project.properties since
the proguard config can use sdk.dir -->
<property environment="env" />
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
<isset property="env.ANDROID_HOME" />
</condition>
<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />
<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
unless="sdk.dir"
/>
<!--
Import per project custom build rules if present at the root of the project.
This is the place to put custom intermediary targets such as:
-pre-build
-pre-compile
-post-compile (This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir})
-post-package
-post-build
-pre-clean
-->
<import file="custom_rules.xml" optional="true" />
<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>
<?xml version="1.0" encoding="UTF-8"?>
<lint>
</lint>
\ No newline at end of file
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
# location of the SDK. This is only used by Ant
# For customization when using a Version Control System, please read the
# header note.
sdk.dir=D:\\android\\sdk
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-21
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/public_sdk_self_demo_btn_main_s" android:state_selected="true"/>
<item android:drawable="@drawable/public_sdk_self_demo_btn_main_s" android:state_pressed="true"/>
<item android:drawable="@drawable/public_sdk_self_demo_btn_main_n"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/public_sdk_self_demo_btn_login_s" android:state_selected="true"/>
<item android:drawable="@drawable/public_sdk_self_demo_btn_login_s" android:state_pressed="true"/>
<item android:drawable="@drawable/public_sdk_self_demo_btn_login_n"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/public_sdk_self_demo_main" >
<Button
android:id="@+id/ya_channel_center"
android:layout_width="180dp"
android:layout_height="60dp"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/ya_pay_bt"
android:background="@drawable/public_sdk_self_ya_bt_selector"
android:onClick="yaOnClick"/>
<Button
android:id="@+id/ya_switch_account_bt"
android:layout_width="180dp"
android:layout_height="60dp"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/ya_submit_role_data_bt"
android:background="@drawable/public_sdk_self_ya_bt_selector"
android:onClick="yaOnClick" />
<Button
android:id="@+id/ya_submit_role_data_bt"
android:layout_width="180dp"
android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:background="@drawable/public_sdk_self_ya_bt_selector"
android:onClick="yaOnClick" />
<Button
android:id="@+id/ya_pay_bt"
android:layout_width="180dp"
android:layout_height="60dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@drawable/public_sdk_self_ya_bt_selector"
android:onClick="yaOnClick" />
<Button
android:id="@+id/logout_bt"
android:layout_width="180dp"
android:layout_height="60dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:background="@drawable/public_sdk_self_ya_bt_selector"
android:onClick="yaOnClick"
android:text="注销"
android:textColor="@android:color/black"
/>
<Button
android:id="@+id/forum_bt"
android:layout_width="180dp"
android:layout_height="60dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="@drawable/public_sdk_self_ya_bt_selector"
android:onClick="yaOnClick"
android:text="论坛"
android:textColor="@android:color/black"
/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:background="@drawable/public_sdk_self_sdk_login_bg"
android:layout_height="match_parent" >
<Button
android:id="@+id/ya_login_bt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="28dp"
android:layout_marginTop="21dp"
android:background="@drawable/public_sdk_self_ya_login_bt_selector"
android:onClick="yaOnClick" />
<Button
android:id="@+id/ya_enter_game_bt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/ya_login_bt"
android:layout_below="@+id/ya_login_bt"
android:layout_marginTop="28dp"
android:background="@drawable/public_sdk_self_ya_login_bt_selector"
android:onClick="yaOnClick"/>
</RelativeLayout>
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.youai.demo.poolsdk"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
}
No preview for this file type
No preview for this file type
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
......
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.youai.poolsdk.demo"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
package="com.youai.demo.poolsdk">
<!-- SDK start -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
......@@ -36,7 +30,7 @@
android:name="com.youai.foolsdk.demo.AppActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
......@@ -70,14 +64,6 @@
<action android:name="com.youai.sdk.YouaiService" />
</intent-filter>
</service>
<service
android:name="com.youai.sdk.FloatViewService"
android:enabled="true"
android:exported="true" >
<intent-filter>
<action android:name="com.youai.sdk.FloatViewService" />
</intent-filter>
</service>
<receiver android:name="com.youai.sdk.Receiver" >
<intent-filter>
......@@ -97,14 +83,6 @@
android:configChanges="keyboardHidden|navigation|orientation"
android:exported="false"
android:screenOrientation="behind" />
<activity
android:name=".wxapi.WXPayEntryActivity"
android:exported="true"
android:launchMode="singleTop" />
<activity
android:name=".wxapi.WXEntryActivity"
android:exported="true"
android:launchMode="singleTop" />
<!-- SDK end -->
</application>
......
......@@ -2,18 +2,18 @@
<config>
<sdkconfig
YA_APPID="576d079de138233c142da6a2"
YA_APPKEY="bf455586ef90b4470d17d167164671e2"
gamesimplename="sstx_dl"
sdksimplename="i9133"
YA_APPID="58fd78a9834e7246b8dc0eac"
YA_APPKEY="b06b86b79c25774ec758657a7203bae6"
gamesimplename="fytx_test"
sdksimplename="youyu"
sdkversioncode="V1_0"
channelparameter1=""
channelparameter2=""
custom=""
gamechannelid=""
logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check"
paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm"
payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create"
logincheckurl="http://183.136.223.85:9010/logincheck/check/"
payorderurl="http://183.136.223.85:9020/paycheck/create"
paycheckurl="http://183.136.223.85:9020/paycheck/confirm"
usertype="gssaXIIEiL0=" />
</config>
\ No newline at end of file
......
This diff is collapsed. Click to expand it.
......@@ -109,7 +109,6 @@ function initMatching(){
_w = Core.sdk_w * _scale;
Core.ios_w = _w;
$('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no');
//$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head);
......@@ -144,13 +143,10 @@ function initMatching(){
var ratio = window.devicePixelRatio;
Core.ratio = ratio;
Core.PLATFORM_NAME = '9133游戏';
Core.PLATFORM_NAME = '游娱';
if(Core.isIos){
Core.server = 'https://sdk.i9133.com';
}else{
Core.server = 'http://sdk.i9133.com';
}
Core.server = 'https://sdk.uuufish.com';
var lastServer = localStorage.getItem('last_server');
if(lastServer && lastServer.indexOf('http:')==0){
......@@ -221,7 +217,6 @@ function initMatching(){
Core.ios_w = _w;
$('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no');
//$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head);
//$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head);
......@@ -552,8 +547,7 @@ function initMatching(){
}
if ($obj[0].tagName == "FORM") {
$obj[0].disabled = false;
$obj.find("input[type='text'],input[type='password'],input[name='password'], button").attr('disabled', null);
$obj.find("input, button").attr('disabled', null);
var $but_input = $obj.find('[type=submit]');
if ($but_input.is('button')) {
$but_input.html(temp);
......
......@@ -49,10 +49,6 @@
Core.showMod('help');
return false;
});
that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面
e.stopPropagation();
Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!");
});
}
Home.prototype.logout_cb = function(data) {
......@@ -62,7 +58,7 @@
}
Home.prototype.show_after = function(){
$('#login').hide();
$('#login').hide()
}
Core.registerMod('home', Home);
......@@ -225,6 +221,7 @@
Core.first_password = this.$c.find('[name="password"]').val()
this.cache();
Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台');
Core.updateMod('home');
}
Login.prototype.login_eg_cb = function(result) {
......@@ -287,6 +284,7 @@
if(Core.Data.other_login.length > 0){
this.$c.find(".other-login-bx").removeClass("hide");
}
//设置第三方登录显示
for (var i = 0, l = Core.Data.other_login.length; i < l; i++) {
this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide');
......@@ -383,28 +381,18 @@
that.$c.on('click', '[type=submit],.submit', function(e) {
var passWordReg = /^[0-9a-zA-Z]+$/;
e.preventDefault();
if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){
Core.showTips("账号不能有大写字母!");
}else if(/[A-Z]/.test(that.$c.find("input[name='password']").val())){
Core.showTips("密码不能有大写字母!");
}else if(that.$c.find("input[name='password']").val().length<6 || that.$c.find("input[name='password']").val().length>16){
Core.showTips("密码长度为6-16位字符!");
}else if(!that.$c.find('.checkbox-2').length>0){
Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1);
}else if(!passWordReg.test(that.$c.find("input[name='password']").val())){
Core.showTips('请输入数字字母组成的密码!', true);
return false;
}else{
//如果是游客的话则调用安卓截屏方法
if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){
window.android.screenShot();
}
$(this).attr("disabled",true);
$(this).css({"background":"#999"});
$(this).parent("li").css({"background":"#999"});
}
Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that);
}
return false;
......@@ -427,9 +415,6 @@
that.$c.find('[name="old_usernmae"]').val(random_name)
that.$c.find('[name="password"]').val(random_passwd)
that.$c.find('[name="type"]').val(-1)
that.$c.find("input#btn-regist").attr('disabled', null);
that.$c.find('.submit').css({"background":"#00beef"});
that.$c.find('.submit').parent("li").css({"background":"#00beef"});
}
Register.prototype.cache = Login.prototype.cache;
......@@ -440,16 +425,8 @@
Core.first_password = this.$c.find('[name="password"]').val()
// 显示一个注册成功信息,并跳转到home
this.cache();
if (Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == "") {
Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!");
Core.updateMod('identityCard');
}else{
Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台');
Core.updateMod('home');
}
this.$c.find("input#btn-regist").attr('disabled', null);
this.$c.find('.submit').css({"background":"#00beef"});
this.$c.find('.submit').parent("li").css({"background":"#00beef"});
Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台');
Core.updateMod('home');
}
Register.prototype.show_after = function() {
this.set_random();
......@@ -607,14 +584,9 @@
that.$c.on("click","#js_confirm_resetnewpsw",function(){
var NewPsw = that.$c.find("#js_reset_newpsw").val(),
NewKey = that.$c.find("input[name='pwd_code']").val(),
passWordReg = /^[0-9a-zA-Z]+$/,
account = $("input[name='loginUserName']").val();
var names = localStorage.getItem('user_names');
names = JSON.parse(names);
if(!passWordReg.test(NewPsw)){
Core.showTips('请输入数字字母组成的密码!', true);
return false;
}
Core.ajax({
type:"post",
url:"/user/reset_passwd?pwd_code="+NewKey+"&password="+NewPsw,
......@@ -993,10 +965,10 @@
Core.showTips("请输入身份证号码",false);
return false;
}else if(IsIdCard(identityCard) == false){
Core.showTips("身份证号码有误,请检查输入是否正确",false,5000);
Core.showTips("请输入正确的身份证信息",false);
return false;
}else if($.trim(compellationName) == ""){
Core.showTips("请输入身份证姓名",false);
Core.showTips("请输入姓名",false);
return false;
}else if(!compellationNameReg.test(compellationName)){
Core.showTips("请输入正确的中文姓名",false);
......
......@@ -13,6 +13,7 @@
<link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" />
<link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" />
<title>
平台登录
</title>
......@@ -64,7 +65,7 @@
<i class=" iconfont icon-unie61d"></i>
</a>
<a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk_6/login.html%3Fapp_id={app_id}" class="qq iframe hide">
<a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk/login.html&app_id={app_id}" class="qq iframe hide">
</a>
<a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk/login.html" class="weixin hide">
......@@ -82,7 +83,7 @@
</div>
<ul class="inline-btn login-inline-btn">
<li>
<a method="post" class="btn btn_pri_block" href="#register">注册</a>
<a method="post" class="btn btn_pri_block" href="#register">一键注册</a>
</li>
<li>
......@@ -157,7 +158,7 @@
<input type="hidden" name="type" value="-1">
<ul class="inline-btn">
<li><a class="btn btn_pri_block btn-orange" href="#home">返回</a></li>
<li><input type="button" class="submit btn larg" id="btn-regist" value="确定注册"></li>
<li><a class="submit btn larg " >确定注册</a></li>
</ul>
</form>
</div>
......@@ -418,24 +419,17 @@
<p>{{=Core.Data.nickname}}</p>
</div>
<div class="inline-btn pull-right w_45">
{{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}}
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
{{??}}
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
{{?}}
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
<div class="bind-user">
<div class="w_50 txt" style="display: inline-block; vertical-align: middle;">
为保证您的虚拟财产安全,请升级账号!
您当前还是游客,为保证账号安全,请升级账号!
</div>
<div class="inline-btn w_45" style="display: inline-block; vertical-align: ;">
<a class="btn btn-bind" href="#modify_pwd">马上升级</a>
</div>
</div>
{{? Core.Data.kefu_info != ""}}
<p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px; left:0;">{{=Core.Data.kefu_info[0]}}</p>
{{?}}
</div>
{{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录-->
<div class="user-center-box">
......@@ -445,11 +439,7 @@
<p>{{=Core.Data.nickname}}</p>
</div>
<div class="inline-btn pull-right w_45">
{{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}}
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
{{??}}
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
{{?}}
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
{{? Core.Data.bind_phone === ""}}
......@@ -467,9 +457,7 @@
<li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
<li style="width:50%;"><a href="#identityCard">实名认证</a></li>
</ul>
{{? Core.Data.kefu_info != ""}}
<p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p>
{{?}} {{?}}
{{?}}
</div>
{{?? Core.Data.is_guest == 0}}
<div class="user-center-box">
......@@ -479,21 +467,19 @@
<p>{{=Core.Data.nickname}}</p>
</div>
<div class="inline-btn pull-right w_45">
{{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}}
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
{{??}}
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
{{?}}
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
{{? Core.Data.force_auth == 1}}
{{? Core.Data.bind_phone === ""}}
<ul class="list-item clearfix">
{{? Core.Data.bind_phone === ""}}
<li style="position: relative;width:50%;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
{{??}}
<li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
{{?}}
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>
{{??}}
<ul class="list-item clearfix">
<li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
<li style="width:50%;"><a href="#mibao">设置密保</a></li>
</ul>
<ul class="list-item clearfix" style="border-top:none;">
......@@ -506,46 +492,7 @@
</a></li>
{{?}}
</ul>
{{? Core.Data.kefu_info != ""}}
<p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p>
{{?}} {{??}}
{{? Core.Data.bind_phone === ""}}
<ul class="list-item clearfix">
<li style="width:50%;"><a href="#bindMobile">绑定手机</a></li>
<li style="width:50%;"><a href="#mibao">设置密保</a></li>
</ul>
<ul class="list-item clearfix" style="border-top:none;">
<li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
{{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}}
<li style="width:50%;"><a href="#identityCard">实名认证</a></li>
{{??}}
<li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证
<span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span>
</a></li>
{{?}}
</ul>
{{? Core.Data.kefu_info != ""}}
<p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 1em;left:0;">{{=Core.Data.kefu_info[0]}}</p>
{{?}}
{{??}}
<ul class="list-item clearfix">
<li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
<li style="width:50%;"><a href="#mibao">设置密保</a></li>
</ul>
<ul class="list-item clearfix" style="border-top:none;">
<li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
{{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}}
<li style="width:50%;"><a href="#identityCard">实名认证</a></li>
{{??}}
<li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证
<span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span>
</a></li>
{{?}}
</ul>
{{? Core.Data.kefu_info != ""}}
<p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p>
{{?}} {{?}}
{{?}}
{{?}}
<!--<ul class="list-item clearfix">
{{? Core.Data.bind_phone === ""}}
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
......@@ -677,7 +624,7 @@
</label>
</div>
{{? Core.Data.is_guest == 1}}<p>升级账号成功之后,请妥善保管正式账号</p>{{??}}{{?}}
{{? Core.Data.is_guest == 1}}<p>升级账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}}
</div>
......@@ -696,19 +643,15 @@
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
{{? Core.Data.force_auth !== 1 }}
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
{{?}}
实名认证<div class="" style=" font-size: 18px;color: #949494;text-align: left; padding-left: 37px;">根据国家规定,游戏用户需进行实名认证</div>
实名认证
</div>
<form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" >
<div class="new-sdk-box">
<div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入身份证号码" style="text-align: left;"></div>
<div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入身份证姓名" style="text-align: left;"></div>
<div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入注册身份证号码" style="text-align: left;"></div>
<div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div>
</div>
<ul class="inline-btn">
<li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li>
......
......@@ -36,4 +36,4 @@ instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c
date:2017-5-12
author:lizenghua
instructions:与游娱同步
\ No newline at end of file
instructions:修改充值的界面显示大小
\ No newline at end of file
......
......@@ -23,7 +23,6 @@ section{
a,input,textarea,select {
outline: 0;
}
input[type=button],input[type=text],input[type=password]{-webkit-appearance:none;outline:none}
a:focus {
outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */
}
......
SERVER_URL=http://sdk.uuufish.com
CDN_SERVER_URL=http://sdk.uuufish.com
SDK_TYPE=.sys_config_youyu
\ No newline at end of file
{
"supplier":{
"vivo":{
"appid":"100215079"
},
"xiaomi":{
},
"huawei":{
},
"oppo":{
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFF"
android:orientation="vertical"
android:padding="5dp" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_weight="1"
android:orientation="vertical" >
<Button
android:id="@+id/pb_bt_login"
style="?android:attr/buttonStyleSmall"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="登录" />
<Button
android:id="@+id/pb_bt_entergame"
style="?android:attr/buttonStyleSmall"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="进入游戏" />
<Button
android:id="@+id/pb_bt_pay"
style="?android:attr/buttonStyleSmall"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="支付" />
<Button
android:id="@+id/pb_bt_logout"
style="?android:attr/buttonStyleSmall"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="注销" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_weight="1"
android:orientation="vertical" >
<Button
android:id="@+id/pb_bt_subrole"
style="?android:attr/buttonStyleSmall"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="提交角色数据" />
<Button
android:id="@+id/pb_bt_openchannel"
style="?android:attr/buttonStyleSmall"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="打开渠道个人中心" />
<Button
android:id="@+id/pb_bt_switchacc"
style="?android:attr/buttonStyleSmall"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="切换账号" />
<Button
android:id="@+id/pb_bt_openbbs"
style="?android:attr/buttonStyleSmall"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="打开论坛" />
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:gravity="center"
/>
<TextView
android:id="@+id/tx_sdk_msg"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp" />
<TextView
android:id="@+id/tx_msg"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">SDK_Demo</string>
<string name="app_name">Demo_PoolSDK</string>
</resources>
......
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
No preview for this file type
#Tue Oct 29 15:45:22 CST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
#!/usr/bin/env sh
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
include ':app'
# 公共SDK接入文档 #
## 接入必读
`注意!CP必须设置targetSdkVersion为22及以下版本,不能高于22`
`注意!targetSdkVersion建议设置22及以下版本`
`如果需使用高版本,权限获取问题需要CP自行处理`
`如果需使用高版本,游戏自身动态申请权限获取问题需要CP自行处理`
`
接入公共SDK测试没问题后游戏必须删除掉assets下公共SDK相关资源,
接入公共SDK测试没问题后游戏必须删除掉assets下公共SDK相关资源
(sdk文件夹、sdk.zip、sdkconf.ini)、(supplierconfig.json文件需要保留)
删除manifest中关于公共SDK添加activity和service相关,
删除libs下的XingWanSDK.jar或YouYuSDK.jar,
删除libs下的YouYuSDK_190516.jar,
然后打出一个母包,需要上哪个渠道使用打包工具进行打对应渠道包。
`
......@@ -20,7 +21,7 @@
#### 1.2、复制SDK压缩包中assets目录下的所有内容到游戏工程的assets目录 ####
- 将游戏中的闪屏图片放到assets中poolsdk_splash目录下(选用,图片文件名任意,最多支持2张闪屏)
- 将assets中的poolsdk.xml中的 **YA_APPKEY,YA_APPID,gamesimplename** 修改为申请的参数(必填)(请与相关人员申请)
- 将assets中的poolsdk.xml中的 **YA_APPKEY,YA_APPID,gamesimplename,sdksimplename,sdkversioncode** 修改为申请的参数(必填)(请与相关人员申请)
- channelparameter1 和 channelparameter2 为后台对应渠道编号1和2(选填)(游戏客户端可以通过文档 2.12 方法获取)
- custom 为自定义参数(选填)
- gamechannelid 为游戏渠道号(选填)(游戏客户端可以通过文档 2.12 方法获取)
......@@ -71,15 +72,7 @@
<action android:name="com.youai.sdk.YouaiService" />
</intent-filter>
</service>
<service
android:name="com.youai.sdk.FloatViewService"
android:enabled="true"
android:exported="true" >
<intent-filter>
<action android:name="com.youai.sdk.FloatViewService" />
</intent-filter>
</service>
<receiver android:name="com.youai.sdk.Receiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
......@@ -98,15 +91,6 @@
android:configChanges="keyboardHidden|navigation|orientation"
android:exported="false"
android:screenOrientation="behind" />
<activity
android:name=".wxapi.WXPayEntryActivity"
android:exported="true"
android:launchMode="singleTop" />
<activity
android:name=".wxapi.WXEntryActivity"
android:exported="true"
android:launchMode="singleTop" />
```
......@@ -132,7 +116,7 @@
}
}
```
#### 2.2、初始化接口(必接)
#### 2.2、初始化接口(必接) 高版本Target请游戏申请完自己需要的权限再调用
接口说明:
首先在程序开始的地方调用 SDK 的初始化 init 方法,并设 置 Activity 对像和初始化完成回调
监听(在初始化失败情况下不 再调用其它 SDK 接口方法)
......@@ -272,7 +256,7 @@ public static void submitRoleData(final PoolRoleInfo poolRoleInfo,final PoolRole
PoolSdkHelper.submitRoleData(poolRoleInfo, new PoolRoleListener() {
@Override
public void onRoleDataSuccess(String paramCustom) {
System.out.println("提交角色数据成功 = " + paramCustom);
System.out.println("提交角色数据成功 = " + poolRoleInfo.verboseInfo());
}
});
......@@ -358,7 +342,7 @@ public static void pay(final PoolPayInfo poolPayInfo,final PoolPayListener poolP
```java
public static boolean hasChannelCenter()
```
#### 2.7、用户中心接口(必接)
#### 2.7、用户中心接口
说明:打开渠道用户中心界面
......@@ -680,30 +664,29 @@ PoolSdkHelper.paymentSuccess(AppActivity.this, orderIds.toString());
代码示例:
```java
if(paramCustom == null || paramCustom.length() <= 0)
{
PoolSdkLog.logError("paysuccess data error :" + paramCustom);
return;
}
try {
PoolSdkLog.logInfo("paySuccess:" + paramCustom);
JSONArray jsonArray = new JSONArray(paramCustom);
StringBuilder orderIds = new StringBuilder();
int length = jsonArray.length();
for (int i = 0; i < length; i++) {
JSONObject jb = jsonArray.getJSONObject(i);
String orderId = jb.getString("orderId");
orderIds.append(orderId);
if(i != length -1) {//最后一项不加分割符
orderIds.append(",");
}
}
PoolSdkHelper.paymentSuccess(AppActivity.this, orderIds.toString());
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if(paramCustom == null || paramCustom.length() <= 0)
{
PoolSdkLog.logError("paysuccess data error :" + paramCustom);
return;
}
try {
PoolSdkLog.logInfo("paySuccess:" + paramCustom);
JSONArray jsonArray = new JSONArray(paramCustom);
StringBuilder orderIds = new StringBuilder();
int length = jsonArray.length();
for (int i = 0; i < length; i++) {
JSONObject jb = jsonArray.getJSONObject(i);
String orderId = jb.getString("orderId");
orderIds.append(orderId);
if(i != length -1) {//最后一项不加分割符
orderIds.append(",");
}
}
PoolSdkHelper.paymentSuccess(AppActivity.this, orderIds.toString());
} catch (JSONException e) {
e.printStackTrace();
}
```
......
No preview for this file type