suriyun-production / turnbase-rpg-docs

This is document for Turnbase RPG project (https://www.assetstore.unity3d.com/#!/content/107578?aid=1100lGeN)
https://suriyun-production.github.io/turnbase-rpg-docs
12 stars 3 forks source link

Daily rewards do not work. #227

Closed SEUNGHWANYOUN closed 1 year ago

SEUNGHWANYOUN commented 1 year ago

First of all, thanks for the new feature.

No abnormality occurs when uploading to the server, but if you use the daily function, the following error is exposed and you cannot check the normal function. (The daily function was implemented by referring to the script in Unity.)

Is it possible to attach a daily sample that can be checked in Unity? OR Can you make a guide video that reproduces the function in unity?

[GET->Error] all-daily-rewarding HTTP/1.1 500 Internal Server Error <!DOCTYPE html>

500 Internal Server Error

Internal Server Error

Invalid argument supplied for foreach()

[fatfree/base.php:2378] Base->error()
[functions/DailyReward.php:87] Base->{closure}()
[index.php:333] GetAllDailyRewardList()
[index.php:357] {closure}()
[index.php:688] DoGetAction()
[fatfree/base.php:1987] {closure}()
[fatfree/base.php:1786] Base->call()
[index.php:700] Base->run()

UnityEngine.Debug:LogError (object) WebServiceClient/d__7:MoveNext () (at Assets/RPGGame/Core/Scripts/GameService/Implement/WebServiceClient/WebServiceClient.cs:100) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)


[GET->Error] daily-rewarding/7DaysDailyReward HTTP/1.1 500 Internal Server Error <!DOCTYPE html>

500 Internal Server Error

Internal Server Error

count(): Parameter must be an array or an object that implements Countable

[fatfree/base.php:2378] Base->error()
[functions/DailyReward.php:43] Base->{closure}()
[functions/DailyReward.php:118] GetClaimableDailyRewards()
[index.php:336] GetDailyRewardList()
[index.php:357] {closure}()
[index.php:685] DoGetAction()
[fatfree/base.php:1987] {closure}()
[fatfree/base.php:1786] Base->call()
[index.php:700] Base->run()

UnityEngine.Debug:LogError (object) WebServiceClient/d__7:MoveNext () (at Assets/RPGGame/Core/Scripts/GameService/Implement/WebServiceClient/WebServiceClient.cs:100) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)


image

insthync commented 1 year ago

Seems like you did not export a new game database

SEUNGHWANYOUN commented 1 year ago

Notably, we backed up the existing data and recovered the db after running "sql-importer.php" Is it because "sql-importer.php" is not running normally? It is expected that the daily compensation information will be inserted into the db and the daily compensation details will be retrieved from the db again...

I don't know. [image: 스크린샷 2022-11-05 오후 3.03.15.png][image: 스크린샷 2022-11-05 오후 3.02.05.png] [image: 스크린샷 2022-11-05 오후 3.00.24.png] [image: 스크린샷 2022-11-05 오후 2.59.15.png]

insthync commented 1 year ago

I don't get what you want to tell me.

you cannot update to 1.21 ?

SEUNGHWANYOUN commented 1 year ago

There are no additional corrections after the error was exposed. I checked that it was applied normally the next day, thank you.

ps: The id value entered a json id value rather than an object id value... 2022년 11월 5일 (토) 오후 7:54, Ittipon Teerapruettikulchai < @.***>님이 작성:

I don't get what you want to tell me.

you cannot update to 1.21 ?

— Reply to this email directly, view it on GitHub https://github.com/suriyun-production/turnbase-rpg-docs/issues/227#issuecomment-1304496559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5T3U5WDEMRHXX5CCLGYQLWGY4FHANCNFSM6AAAAAARXGNFZU . You are receiving this because you authored the thread.Message ID: @.***>