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
76376eab
Commit
76376eab
authored
Oct 14, 2023
by
朱招明
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
b7f65213
5bda19d9
Show 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 @
76376eab
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
},
},
"files"
:
[
"files"
:
[
"src/helpers.php"
,
"src/helpers.php"
,
"config/wike.php"
]
]
},
},
"require"
:
{
"require"
:
{
...
...
config/
wike
.php
→
config/
third_api
.php
View file @
76376eab
<?php
<?php
return
[
return
[
'app_key'
=>
'app_key'
,
'weike'
=>
[
'app_secret'
=>
'app_secret'
,
'app_key'
=>
''
,
'app_secret'
=>
''
,
],
];
];
\ No newline at end of file
src/WeiKe/Base.php
View file @
76376eab
...
@@ -20,7 +20,7 @@ class Base
...
@@ -20,7 +20,7 @@ class Base
if
(
$config
){
if
(
$config
){
$this
->
config
=
$config
;
$this
->
config
=
$config
;
}
else
{
}
else
{
$this
->
config
=
config
(
'
w
ike'
);
$this
->
config
=
config
(
'
third_api.we
ike'
);
}
}
if
(
empty
(
$this
->
config
[
'app_key'
])){
if
(
empty
(
$this
->
config
[
'app_key'
])){
throw
new
\Exception
(
"缺少 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