Commit fb1f22da9697c83641286ccde50d5c843c6a4fba
1 parent
d7488b15
Exists in
master
提交
Showing
2 changed files
with
22 additions
and
22 deletions
Show diff stats
src/HttpServer/logic/function.go
| @@ -775,7 +775,7 @@ func GetUserInfo(uniqueid string) (*UserData, error) { | @@ -775,7 +775,7 @@ func GetUserInfo(uniqueid string) (*UserData, error) { | ||
| 775 | } | 775 | } |
| 776 | 776 | ||
| 777 | func SaveUserSelfData(uniqueid, savedata string) error { | 777 | func SaveUserSelfData(uniqueid, savedata string) error { |
| 778 | - err := redishandler.GetRedisClient().HSet(redis.USER_DATA_KEY, uniqueid, savedata) | 778 | + err := redishandler.GetRedisClient().HSet(redis.USER_SELF_DATA_KEY, uniqueid, savedata) |
| 779 | return err | 779 | return err |
| 780 | } | 780 | } |
| 781 | 781 |
src/HttpServer/logic/httpserver.go
| @@ -363,7 +363,7 @@ func Gettaskreward(w http.ResponseWriter, r *http.Request) { | @@ -363,7 +363,7 @@ func Gettaskreward(w http.ResponseWriter, r *http.Request) { | ||
| 363 | 363 | ||
| 364 | if Uuid == 0 { | 364 | if Uuid == 0 { |
| 365 | SetHeader(w) | 365 | SetHeader(w) |
| 366 | - logger.Error("Uuid is nil!") | 366 | + //logger.Error("Uuid is nil!") |
| 367 | return | 367 | return |
| 368 | } | 368 | } |
| 369 | result, _ := ioutil.ReadAll(r.Body) | 369 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -390,7 +390,7 @@ func Querytaskinfo(w http.ResponseWriter, r *http.Request) { | @@ -390,7 +390,7 @@ func Querytaskinfo(w http.ResponseWriter, r *http.Request) { | ||
| 390 | 390 | ||
| 391 | if Uuid == 0 { | 391 | if Uuid == 0 { |
| 392 | SetHeader(w) | 392 | SetHeader(w) |
| 393 | - logger.Error("Uuid is nil!") | 393 | + //logger.Error("Uuid is nil!") |
| 394 | return | 394 | return |
| 395 | } | 395 | } |
| 396 | result, _ := ioutil.ReadAll(r.Body) | 396 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -417,7 +417,7 @@ func Updatetaskandachieve(w http.ResponseWriter, r *http.Request) { | @@ -417,7 +417,7 @@ func Updatetaskandachieve(w http.ResponseWriter, r *http.Request) { | ||
| 417 | 417 | ||
| 418 | if Uuid == 0 { | 418 | if Uuid == 0 { |
| 419 | SetHeader(w) | 419 | SetHeader(w) |
| 420 | - logger.Error("Uuid is nil!") | 420 | + // logger.Error("Uuid is nil!") |
| 421 | return | 421 | return |
| 422 | } | 422 | } |
| 423 | result, _ := ioutil.ReadAll(r.Body) | 423 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -444,7 +444,7 @@ func Onlinentf(w http.ResponseWriter, r *http.Request) { | @@ -444,7 +444,7 @@ func Onlinentf(w http.ResponseWriter, r *http.Request) { | ||
| 444 | 444 | ||
| 445 | if Uuid == 0 { | 445 | if Uuid == 0 { |
| 446 | SetHeader(w) | 446 | SetHeader(w) |
| 447 | - logger.Error("Uuid is nil!") | 447 | + //logger.Error("Uuid is nil!") |
| 448 | return | 448 | return |
| 449 | } | 449 | } |
| 450 | result, _ := ioutil.ReadAll(r.Body) | 450 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -471,7 +471,7 @@ func Getcashrecord(w http.ResponseWriter, r *http.Request) { | @@ -471,7 +471,7 @@ func Getcashrecord(w http.ResponseWriter, r *http.Request) { | ||
| 471 | 471 | ||
| 472 | if Uuid == 0 { | 472 | if Uuid == 0 { |
| 473 | SetHeader(w) | 473 | SetHeader(w) |
| 474 | - logger.Error("Uuid is nil!") | 474 | + // logger.Error("Uuid is nil!") |
| 475 | return | 475 | return |
| 476 | } | 476 | } |
| 477 | result, _ := ioutil.ReadAll(r.Body) | 477 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -498,7 +498,7 @@ func Getcash(w http.ResponseWriter, r *http.Request) { | @@ -498,7 +498,7 @@ func Getcash(w http.ResponseWriter, r *http.Request) { | ||
| 498 | 498 | ||
| 499 | if Uuid == 0 { | 499 | if Uuid == 0 { |
| 500 | SetHeader(w) | 500 | SetHeader(w) |
| 501 | - logger.Error("Uuid is nil!") | 501 | + // logger.Error("Uuid is nil!") |
| 502 | return | 502 | return |
| 503 | } | 503 | } |
| 504 | result, _ := ioutil.ReadAll(r.Body) | 504 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -525,7 +525,7 @@ func Querdrawinfo(w http.ResponseWriter, r *http.Request) { | @@ -525,7 +525,7 @@ func Querdrawinfo(w http.ResponseWriter, r *http.Request) { | ||
| 525 | 525 | ||
| 526 | if Uuid == 0 { | 526 | if Uuid == 0 { |
| 527 | SetHeader(w) | 527 | SetHeader(w) |
| 528 | - logger.Error("Uuid is nil!") | 528 | + // logger.Error("Uuid is nil!") |
| 529 | return | 529 | return |
| 530 | } | 530 | } |
| 531 | result, _ := ioutil.ReadAll(r.Body) | 531 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -552,7 +552,7 @@ func Querydrawreward(w http.ResponseWriter, r *http.Request) { | @@ -552,7 +552,7 @@ func Querydrawreward(w http.ResponseWriter, r *http.Request) { | ||
| 552 | 552 | ||
| 553 | if Uuid == 0 { | 553 | if Uuid == 0 { |
| 554 | SetHeader(w) | 554 | SetHeader(w) |
| 555 | - logger.Error("Uuid is nil!") | 555 | + // logger.Error("Uuid is nil!") |
| 556 | return | 556 | return |
| 557 | } | 557 | } |
| 558 | result, _ := ioutil.ReadAll(r.Body) | 558 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -580,7 +580,7 @@ func Queryrankinfo(w http.ResponseWriter, r *http.Request) { | @@ -580,7 +580,7 @@ func Queryrankinfo(w http.ResponseWriter, r *http.Request) { | ||
| 580 | 580 | ||
| 581 | if Uuid == 0 { | 581 | if Uuid == 0 { |
| 582 | SetHeader(w) | 582 | SetHeader(w) |
| 583 | - logger.Error("Uuid is nil!") | 583 | + // logger.Error("Uuid is nil!") |
| 584 | return | 584 | return |
| 585 | } | 585 | } |
| 586 | result, _ := ioutil.ReadAll(r.Body) | 586 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -608,7 +608,7 @@ func Uploadhigestscore(w http.ResponseWriter, r *http.Request) { | @@ -608,7 +608,7 @@ func Uploadhigestscore(w http.ResponseWriter, r *http.Request) { | ||
| 608 | 608 | ||
| 609 | if Uuid == 0 { | 609 | if Uuid == 0 { |
| 610 | SetHeader(w) | 610 | SetHeader(w) |
| 611 | - logger.Error("Uuid is nil!") | 611 | + // logger.Error("Uuid is nil!") |
| 612 | return | 612 | return |
| 613 | } | 613 | } |
| 614 | result, _ := ioutil.ReadAll(r.Body) | 614 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -636,7 +636,7 @@ func Fetchoffliengold(w http.ResponseWriter, r *http.Request) { | @@ -636,7 +636,7 @@ func Fetchoffliengold(w http.ResponseWriter, r *http.Request) { | ||
| 636 | 636 | ||
| 637 | if Uuid == 0 { | 637 | if Uuid == 0 { |
| 638 | SetHeader(w) | 638 | SetHeader(w) |
| 639 | - logger.Error("Uuid is nil!") | 639 | + // logger.Error("Uuid is nil!") |
| 640 | return | 640 | return |
| 641 | } | 641 | } |
| 642 | result, _ := ioutil.ReadAll(r.Body) | 642 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -664,7 +664,7 @@ func Dosign(w http.ResponseWriter, r *http.Request) { | @@ -664,7 +664,7 @@ func Dosign(w http.ResponseWriter, r *http.Request) { | ||
| 664 | 664 | ||
| 665 | if Uuid == 0 { | 665 | if Uuid == 0 { |
| 666 | SetHeader(w) | 666 | SetHeader(w) |
| 667 | - logger.Error("Uuid is nil!") | 667 | + // logger.Error("Uuid is nil!") |
| 668 | return | 668 | return |
| 669 | } | 669 | } |
| 670 | result, _ := ioutil.ReadAll(r.Body) | 670 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -692,7 +692,7 @@ func Quersigndata(w http.ResponseWriter, r *http.Request) { | @@ -692,7 +692,7 @@ func Quersigndata(w http.ResponseWriter, r *http.Request) { | ||
| 692 | 692 | ||
| 693 | if Uuid == 0 { | 693 | if Uuid == 0 { |
| 694 | SetHeader(w) | 694 | SetHeader(w) |
| 695 | - logger.Error("Uuid is nil!") | 695 | + // logger.Error("Uuid is nil!") |
| 696 | return | 696 | return |
| 697 | } | 697 | } |
| 698 | result, _ := ioutil.ReadAll(r.Body) | 698 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -720,7 +720,7 @@ func Fetchluckybag(w http.ResponseWriter, r *http.Request) { | @@ -720,7 +720,7 @@ func Fetchluckybag(w http.ResponseWriter, r *http.Request) { | ||
| 720 | 720 | ||
| 721 | if Uuid == 0 { | 721 | if Uuid == 0 { |
| 722 | SetHeader(w) | 722 | SetHeader(w) |
| 723 | - logger.Error("Uuid is nil!") | 723 | + // logger.Error("Uuid is nil!") |
| 724 | return | 724 | return |
| 725 | } | 725 | } |
| 726 | result, _ := ioutil.ReadAll(r.Body) | 726 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -748,7 +748,7 @@ func Fetchfenredbag(w http.ResponseWriter, r *http.Request) { | @@ -748,7 +748,7 @@ func Fetchfenredbag(w http.ResponseWriter, r *http.Request) { | ||
| 748 | 748 | ||
| 749 | if Uuid == 0 { | 749 | if Uuid == 0 { |
| 750 | SetHeader(w) | 750 | SetHeader(w) |
| 751 | - logger.Error("Uuid is nil!") | 751 | + // logger.Error("Uuid is nil!") |
| 752 | return | 752 | return |
| 753 | } | 753 | } |
| 754 | result, _ := ioutil.ReadAll(r.Body) | 754 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -776,7 +776,7 @@ func Drawguangold(w http.ResponseWriter, r *http.Request) { | @@ -776,7 +776,7 @@ func Drawguangold(w http.ResponseWriter, r *http.Request) { | ||
| 776 | 776 | ||
| 777 | if Uuid == 0 { | 777 | if Uuid == 0 { |
| 778 | SetHeader(w) | 778 | SetHeader(w) |
| 779 | - logger.Error("Uuid is nil!") | 779 | + // logger.Error("Uuid is nil!") |
| 780 | return | 780 | return |
| 781 | } | 781 | } |
| 782 | result, _ := ioutil.ReadAll(r.Body) | 782 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -804,7 +804,7 @@ func Getguangold(w http.ResponseWriter, r *http.Request) { | @@ -804,7 +804,7 @@ func Getguangold(w http.ResponseWriter, r *http.Request) { | ||
| 804 | 804 | ||
| 805 | if Uuid == 0 { | 805 | if Uuid == 0 { |
| 806 | SetHeader(w) | 806 | SetHeader(w) |
| 807 | - logger.Error("Uuid is nil!") | 807 | + // logger.Error("Uuid is nil!") |
| 808 | return | 808 | return |
| 809 | } | 809 | } |
| 810 | result, _ := ioutil.ReadAll(r.Body) | 810 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -878,7 +878,7 @@ func Syncuserdata(w http.ResponseWriter, r *http.Request) { | @@ -878,7 +878,7 @@ func Syncuserdata(w http.ResponseWriter, r *http.Request) { | ||
| 878 | 878 | ||
| 879 | if Uuid == 0 { | 879 | if Uuid == 0 { |
| 880 | SetHeader(w) | 880 | SetHeader(w) |
| 881 | - logger.Error("Uuid is nil!") | 881 | + // logger.Error("Uuid is nil!") |
| 882 | return | 882 | return |
| 883 | } | 883 | } |
| 884 | result, _ := ioutil.ReadAll(r.Body) | 884 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -905,7 +905,7 @@ func Updatedata(w http.ResponseWriter, r *http.Request) { | @@ -905,7 +905,7 @@ func Updatedata(w http.ResponseWriter, r *http.Request) { | ||
| 905 | 905 | ||
| 906 | if Uuid == 0 { | 906 | if Uuid == 0 { |
| 907 | SetHeader(w) | 907 | SetHeader(w) |
| 908 | - logger.Error("Uuid is nil!") | 908 | + //logger.Error("Uuid is nil!") |
| 909 | return | 909 | return |
| 910 | } | 910 | } |
| 911 | result, _ := ioutil.ReadAll(r.Body) | 911 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -932,7 +932,7 @@ func Uploaduserbasicinfo(w http.ResponseWriter, r *http.Request) { | @@ -932,7 +932,7 @@ func Uploaduserbasicinfo(w http.ResponseWriter, r *http.Request) { | ||
| 932 | 932 | ||
| 933 | if Uuid == 0 { | 933 | if Uuid == 0 { |
| 934 | SetHeader(w) | 934 | SetHeader(w) |
| 935 | - logger.Error("Uuid is nil!") | 935 | + //logger.Error("Uuid is nil!") |
| 936 | return | 936 | return |
| 937 | } | 937 | } |
| 938 | result, _ := ioutil.ReadAll(r.Body) | 938 | result, _ := ioutil.ReadAll(r.Body) |
| @@ -962,7 +962,7 @@ func UserLogin(w http.ResponseWriter, r *http.Request) { | @@ -962,7 +962,7 @@ func UserLogin(w http.ResponseWriter, r *http.Request) { | ||
| 962 | 962 | ||
| 963 | if Uuid == 0 { | 963 | if Uuid == 0 { |
| 964 | SetHeader(w) | 964 | SetHeader(w) |
| 965 | - logger.Error("Uuid is nil!") | 965 | + //logger.Error("Uuid is nil!") |
| 966 | return | 966 | return |
| 967 | } | 967 | } |
| 968 | result, _ := ioutil.ReadAll(r.Body) | 968 | result, _ := ioutil.ReadAll(r.Body) |