Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phpdts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nemo Ma
phpdts
Commits
2d353722
Commit
2d353722
authored
May 28, 2023
by
Nemo Ma
Committed by
GitHub
May 28, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #166 from luluxia/nachster
fix: 修复is_new未定义
parents
1f2831de
84011bd4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
include/global.func.php
include/global.func.php
+1
-1
index.php
index.php
+1
-1
valid.php
valid.php
+2
-2
No files found.
include/global.func.php
View file @
2d353722
...
@@ -30,7 +30,7 @@ function gameerrorhandler($code, $msg, $file, $line){
...
@@ -30,7 +30,7 @@ function gameerrorhandler($code, $msg, $file, $line){
function
gexit
(
$message
=
''
,
$file
=
''
,
$line
=
0
)
{
function
gexit
(
$message
=
''
,
$file
=
''
,
$line
=
0
)
{
global
$charset
,
$title
,
$extrahead
,
$allowcsscache
,
$errorinfo
;
global
$charset
,
$title
,
$extrahead
,
$allowcsscache
,
$errorinfo
;
global
$gameversion
,
$cuser
,
$cpass
;
global
$gameversion
,
$cuser
,
$cpass
;
if
(
$_GET
[
'is_new'
]
)
{
if
(
isset
(
$_GET
[
'is_new'
])
)
{
echo
json_encode
(
array
(
echo
json_encode
(
array
(
"error"
=>
$message
,
"error"
=>
$message
,
));
));
...
...
index.php
View file @
2d353722
...
@@ -57,7 +57,7 @@ if(!empty($roomact))
...
@@ -57,7 +57,7 @@ if(!empty($roomact))
}
}
else
else
{
{
if
(
$_GET
[
'is_new'
]
)
{
if
(
isset
(
$_GET
[
'is_new'
])
)
{
echo
json_encode
(
array
(
echo
json_encode
(
array
(
// 当前回合数
// 当前回合数
"num"
=>
$gamenum
,
"num"
=>
$gamenum
,
...
...
valid.php
View file @
2d353722
...
@@ -284,7 +284,7 @@ if($mode == 'enter') {
...
@@ -284,7 +284,7 @@ if($mode == 'enter') {
save_gameinfo
();
save_gameinfo
();
if
(
$_GET
[
'is_new'
]
)
{
if
(
isset
(
$_GET
[
'is_new'
])
)
{
echo
json_encode
(
array
(
echo
json_encode
(
array
(
"page"
=>
"validOver"
,
"page"
=>
"validOver"
,
"nick"
=>
$nickinfo
,
"nick"
=>
$nickinfo
,
...
@@ -325,7 +325,7 @@ if($mode == 'enter') {
...
@@ -325,7 +325,7 @@ if($mode == 'enter') {
$iconarray
=
get_iconlist
(
$icon
);
$iconarray
=
get_iconlist
(
$icon
);
$utlist
=
get_utitlelist
();
$utlist
=
get_utitlelist
();
$select_icon
=
$icon
;
$select_icon
=
$icon
;
if
(
$_GET
[
'is_new'
]
)
{
if
(
isset
(
$_GET
[
'is_new'
])
)
{
// 获取可选称号
// 获取可选称号
$nickList
=
array_map
(
function
(
$val
)
use
(
$titles_list
)
{
$nickList
=
array_map
(
function
(
$val
)
use
(
$titles_list
)
{
return
array
(
return
array
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment