Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
ruitu-fahuoyi-exension
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖健文
ruitu-fahuoyi-exension
Commits
a64aa2cc
Commit
a64aa2cc
authored
Mar 15, 2024
by
刘燕芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉部分打印
parent
8fdf6f3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
index.ts
src/background/index.ts
+0
-4
bookingV2.ts
src/content/bookingV2.ts
+0
-1
No files found.
src/background/index.ts
View file @
a64aa2cc
...
...
@@ -50,8 +50,6 @@ if (message.action === ACTION.task) {
return
true
;
})
chrome
.
tabs
.
onUpdated
.
addListener
(
async
(
tabId
,
changeInfo
,
tab
)
=>
{
console
.
log
(
'tab'
,
tab
);
//加载完毕后在执行一些动作
if
(
tab
.
status
==
"complete"
)
{
//如果进入了千牛首页 则开始获取对应的数据信息
...
...
@@ -167,8 +165,6 @@ function getCookies(url:string, name:string){
})
}
function
getCookieAll
(
url
:
string
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
chrome
.
cookies
.
getAll
({
...
...
src/content/bookingV2.ts
View file @
a64aa2cc
import
{
bookingV2Urls
}
from
"../config"
;
async
function
booking
(
info
:
any
)
{
console
.
log
(
2222
);
let
data
:
object
=
{
catId
:
150704
,
jsonBody
:
info
}
return
new
Promise
((
resolve
,
reject
)
=>
{
fetch
(
"https://item.upload.taobao.com/sell/v2/submit.htm"
,
{
method
:
"POST"
,
body
:
JSON
.
stringify
(
data
)
}).
then
(
res
=>
{
...
...
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