Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fusionapi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林洽文
fusionapi
Commits
a6e4752f
Commit
a6e4752f
authored
2 years ago
by
zazaname
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试
parent
0ae5d70d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
Controller.php
app/Http/Controllers/Controller.php
+8
-0
ReportController.php
app/Http/Controllers/ReportController.php
+0
-8
Jiuzi.php
app/Http/InterfaceClass/SdkImpl/Jiuzi.php
+2
-2
No files found.
app/Http/Controllers/Controller.php
View file @
a6e4752f
...
@@ -75,4 +75,12 @@ class Controller extends BaseController
...
@@ -75,4 +75,12 @@ class Controller extends BaseController
echo
response
()
->
json
(
$res
)
->
setEncodingOptions
(
JSON_UNESCAPED_UNICODE
);
echo
response
()
->
json
(
$res
)
->
setEncodingOptions
(
JSON_UNESCAPED_UNICODE
);
exit
();
exit
();
}
}
public
function
shutdownAction
()
{
$error
=
error_get_last
();
if
(
!
is_null
(
$error
))
{
// 异常退出
dingdingLog
(
$error
);
}
}
}
}
This diff is collapsed.
Click to expand it.
app/Http/Controllers/ReportController.php
View file @
a6e4752f
...
@@ -16,20 +16,12 @@ class ReportController extends Controller
...
@@ -16,20 +16,12 @@ class ReportController extends Controller
*/
*/
public
function
init
()
public
function
init
()
{
{
register_shutdown_function
([
$this
,
'shutdownAction'
]);
$this
->
checkParam
([
'app_id'
,
'ctype'
]);
$this
->
checkParam
([
'app_id'
,
'ctype'
]);
$indexSv
=
new
InitService
();
$indexSv
=
new
InitService
();
$data
=
$indexSv
->
storeInitData
(
$this
->
requestData
);
$data
=
$indexSv
->
storeInitData
(
$this
->
requestData
);
return
json
(
$data
);
return
json
(
$data
);
}
}
public
function
shutdownAction
()
{
$error
=
error_get_last
();
if
(
!
is_null
(
$error
))
{
// 异常退出
dingdingLog
(
$error
);
}
}
/**
/**
* 角色上报
* 角色上报
...
...
This diff is collapsed.
Click to expand it.
app/Http/InterfaceClass/SdkImpl/Jiuzi.php
View file @
a6e4752f
...
@@ -24,8 +24,8 @@ class Jiuzi implements ISdkFactory
...
@@ -24,8 +24,8 @@ class Jiuzi implements ISdkFactory
$ver_info
=
json_decode
(
$request
[
'ver_info'
],
true
);
$ver_info
=
json_decode
(
$request
[
'ver_info'
],
true
);
//获取请求参数
//获取请求参数
$postParam
=
[
$postParam
=
[
'uid'
=>
$ver_info
[
'u
nionI
d'
],
'uid'
=>
$ver_info
[
'u
i
d'
],
'access_token'
=>
$ver_info
[
'
access_
token'
],
'access_token'
=>
$ver_info
[
'token'
],
'gid'
=>
$verInfo
->
ver_appid
,
'gid'
=>
$verInfo
->
ver_appid
,
'version'
=>
$request
[
'unionId'
]
??
1
,
'version'
=>
$request
[
'unionId'
]
??
1
,
];
];
...
...
This diff is collapsed.
Click to expand it.
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