修改h5
This commit is contained in:
@@ -10,6 +10,9 @@
|
|||||||
#import "CustomView.h"
|
#import "CustomView.h"
|
||||||
#import "UnityFramework.h"
|
#import "UnityFramework.h"
|
||||||
#import <objc/runtime.h>
|
#import <objc/runtime.h>
|
||||||
|
// 显式声明 Unity 的消息发送函数,防止编译器报错
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
#import "UnityInterface.h"
|
||||||
|
|
||||||
@implementation H5View{
|
@implementation H5View{
|
||||||
|
|
||||||
@@ -329,24 +332,24 @@
|
|||||||
|
|
||||||
|
|
||||||
//-(void)upDataH5times:(char*)weblink times:(int)times is_dark:(BOOL)is_dark{
|
//-(void)upDataH5times:(char*)weblink times:(int)times is_dark:(BOOL)is_dark{
|
||||||
//
|
//
|
||||||
// NSString *myNSString = [[NSString alloc] initWithUTF8String:weblink];
|
// NSString *myNSString = [[NSString alloc] initWithUTF8String:weblink];
|
||||||
// if(is_dark){
|
// if(is_dark){
|
||||||
// for (int counter = 0; counter < dark_url_array.count; counter++) {
|
// for (int counter = 0; counter < dark_url_array.count; counter++) {
|
||||||
//
|
//
|
||||||
// if( [dark_url_array[counter][0] isEqualToString:myNSString]){
|
// if( [dark_url_array[counter][0] isEqualToString:myNSString]){
|
||||||
// dark_url_array[counter][2]=@(times);
|
// dark_url_array[counter][2]=@(times);
|
||||||
//
|
//
|
||||||
// dark_though_rate[[dark_url_array[counter][4] intValue]-1]=@([dark_url_array[counter][3] intValue]);
|
// dark_though_rate[[dark_url_array[counter][4] intValue]-1]=@([dark_url_array[counter][3] intValue]);
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// break;
|
// break;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// else{
|
// else{
|
||||||
// for (int counter = 0; counter < light_url_array.count; counter++) {
|
// for (int counter = 0; counter < light_url_array.count; counter++) {
|
||||||
//
|
//
|
||||||
// if( [light_url_array[counter][0] isEqualToString:myNSString]){
|
// if( [light_url_array[counter][0] isEqualToString:myNSString]){
|
||||||
// light_url_array[counter][2]=@(times);
|
// light_url_array[counter][2]=@(times);
|
||||||
// //light_though_rate=[light_url_array[counter][3] intValue];
|
// //light_though_rate=[light_url_array[counter][3] intValue];
|
||||||
@@ -570,17 +573,17 @@
|
|||||||
// float maxvalue=0;
|
// float maxvalue=0;
|
||||||
// float random3 ;
|
// float random3 ;
|
||||||
// float rate=0;
|
// float rate=0;
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// for (int counter = 0; counter < dark_url_array.count; counter++) {
|
// for (int counter = 0; counter < dark_url_array.count; counter++) {
|
||||||
// if([dark_url_array[counter][2] intValue]>0 ){
|
// if([dark_url_array[counter][2] intValue]>0 ){
|
||||||
// if([dark_url_array[counter][4] intValue]!=(type+1) ) continue;
|
// if([dark_url_array[counter][4] intValue]!=(type+1) ) continue;
|
||||||
// maxvalue+=[dark_url_array[counter][1] floatValue];
|
// maxvalue+=[dark_url_array[counter][1] floatValue];
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// if(maxvalue>0){
|
// if(maxvalue>0){
|
||||||
// random3=arc4random_uniform(maxvalue);
|
// random3=arc4random_uniform(maxvalue);
|
||||||
// for (int counter = 0; counter < dark_url_array.count; counter++) {
|
// for (int counter = 0; counter < dark_url_array.count; counter++) {
|
||||||
@@ -753,7 +756,7 @@
|
|||||||
// NSString *objcString = [NSString stringWithUTF8String:darkWVDailyrefreshtimes_str];
|
// NSString *objcString = [NSString stringWithUTF8String:darkWVDailyrefreshtimes_str];
|
||||||
// NSArray *stringArray = [objcString componentsSeparatedByString:@"|"];
|
// NSArray *stringArray = [objcString componentsSeparatedByString:@"|"];
|
||||||
// NSMutableArray *intArray = [NSMutableArray array];
|
// NSMutableArray *intArray = [NSMutableArray array];
|
||||||
//
|
//
|
||||||
// for (NSString *str in stringArray) {
|
// for (NSString *str in stringArray) {
|
||||||
// [intArray addObject:@([str intValue])];
|
// [intArray addObject:@([str intValue])];
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user