future 1 рік тому
батько
коміт
990ad76802

+ 9 - 9
assets/resources/ui/car_lib.prefab

@@ -106,7 +106,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 814.5000000000001,
+      "y": 814.5,
       "z": 0
     },
     "_lrot": {
@@ -525,7 +525,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 232.0000000000001,
+      "y": 232,
       "z": 0
     },
     "_lrot": {
@@ -2709,7 +2709,7 @@
     },
     "_type": 0,
     "_fillType": 0,
-    "_sizeMode": 1,
+    "_sizeMode": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,
@@ -3500,7 +3500,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 340.0000000000001,
+      "y": 340,
       "z": 0
     },
     "_lrot": {
@@ -4804,7 +4804,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 0,
-      "height": 680.0000000000002
+      "height": 680
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -4919,7 +4919,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 680.0000000000002
+      "height": 680
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -5184,7 +5184,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 680.0000000000002
+      "height": 680
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -5347,7 +5347,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 760.0000000000002
+      "height": 760
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -5506,7 +5506,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1920
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 1 - 1
assets/resources/ui/home.prefab

@@ -9651,7 +9651,7 @@
     },
     "_type": 0,
     "_fillType": 0,
-    "_sizeMode": 1,
+    "_sizeMode": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,

+ 2 - 2
assets/script/GameManager.ts

@@ -129,7 +129,7 @@ export class GameManager extends Component {
 
     //请求广播
     public static requestGuangbo(cb=null) {
-        http.get(config.STATIC_API.msg, (err,d)=>{
+        http.post(config.API.msg, null, (err,d)=>{
             if(!err){
                 let nd = JSON.parse(d)
                 if(nd.code === config.status.SUCCESS){
@@ -139,7 +139,7 @@ export class GameManager extends Component {
                     }
                 }   
             }
-        })
+        }, 'GET')
     }
 
     //请求用户车列表

+ 2 - 2
assets/script/config.ts

@@ -3,7 +3,7 @@ const { ccclass, property } = _decorator;
 
 @ccclass('config')
 export class config  {
-    static debug = true
+    static debug = false
     static gameName = "开局自行车";
     static websocket_domain = config.debug?'wss://snakews.xwrun.com':"wss://snakews.hainanmlwl.com" 
     public static Platform = {
@@ -24,6 +24,7 @@ export class config  {
         feedback: "/snake/user/feedback",
         up_feedback_img: "/tool/file/up_feedback_img",
         sync_free_number: "/snake/user/sync_free_number",  
+        msg: "/snakestatic/msg.json",
         rankings: (region_id)=>{
             return `/snakestatic/rankings/${region_id}.json`
         }
@@ -33,7 +34,6 @@ export class config  {
         levels : "/snakestatic/levels.json",
         regions : "/snakestatic/regions.json",
         car_list : "/snakestatic/car_list.json",
-        msg: "/snakestatic/msg.json",
     }
 
     public static status = {