Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-api
Project
Project
Details
Activity
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
朱招明
third-api
Commits
5bda19d9
Commit
5bda19d9
authored
Oct 14, 2023
by
朱招明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7f5d75f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
composer.json
composer.json
+0
-1
third_api.php
config/third_api.php
+5
-2
Base.php
src/WeiKe/Base.php
+1
-1
No files found.
composer.json
View file @
5bda19d9
...
...
@@ -14,7 +14,6 @@
},
"files"
:
[
"src/helpers.php"
,
"config/wike.php"
]
},
"require"
:
{
...
...
config/
wike
.php
→
config/
third_api
.php
View file @
5bda19d9
<?php
return
[
'app_key'
=>
'app_key'
,
'app_secret'
=>
'app_secret'
,
'weike'
=>
[
'app_key'
=>
''
,
'app_secret'
=>
''
,
],
];
\ No newline at end of file
src/WeiKe/Base.php
View file @
5bda19d9
...
...
@@ -20,7 +20,7 @@ class Base
if
(
$config
){
$this
->
config
=
$config
;
}
else
{
$this
->
config
=
config
(
'
w
ike'
);
$this
->
config
=
config
(
'
third_api.we
ike'
);
}
if
(
empty
(
$this
->
config
[
'app_key'
])){
throw
new
\Exception
(
"缺少 app_key"
);
...
...
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