Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
A
aidso-data
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
Yaowentong
aidso-data
Commits
9af6ae57
Commit
9af6ae57
authored
Jul 08, 2026
by
Yaowentong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复三方参数
parent
61512595
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
third_interface.py
aidso_geo/core/routes/third_interface.py
+20
-9
No files found.
aidso_geo/core/routes/third_interface.py
View file @
9af6ae57
...
...
@@ -223,13 +223,14 @@ def get_auth_info_by_token(auth_token: str):
if
not
auth_token
:
return
None
sql
=
f
"""
select channel, authorization, allow_platforms, status, daily_limit, total_limit,
platform_costs,
thinking_costs
sql
=
"""
select channel, authorization, allow_platforms, status, daily_limit, total_limit,
platform_costs,
thinking_costs
from geo_third_token
where authorization =
'{auth_token}'
where authorization =
%
s
limit 1
"""
data
=
bh_utils
.
query_data
(
sql
)
data
=
bh_utils
.
query_data
(
sql
,
(
auth_token
,))
if
not
data
:
return
None
return
data
[
0
]
...
...
@@ -362,12 +363,14 @@ def create_auth():
return
err
(
400
,
"total_limit must be >= daily_limit"
)
exists
=
bh_utils
.
query_data
(
f
"""
select channel, authorization, daily_limit, total_limit, allow_platforms,
platform_costs,
thinking_costs
"""
select channel, authorization, daily_limit, total_limit, allow_platforms,
platform_costs,
thinking_costs
from geo_third_token
where channel = '{channel}' and status = 1
where channel =
%
s
and status = 1
limit 1
"""
"""
,
(
channel
,)
)
if
exists
:
_
,
daily_used_count
,
daily_remain_count
=
get_today_limit_info
(
...
...
@@ -599,7 +602,14 @@ def mt_get_result():
try
:
data
=
bh_utils
.
query_data
(
f
"select * from geo_third_task_data where reqId = '{req_id}' and channel = '{channel}' limit 1"
"""
select *
from geo_third_task_data
where reqId =
%
s
and channel =
%
s
limit 1
"""
,
(
req_id
,
channel
)
)
except
Exception
as
e
:
return
jsonify
({
...
...
@@ -782,3 +792,4 @@ def mt_get_usage():
# "history_used_list": history_userd_list
})
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