Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-deploy-utils
Commits
512db8a9
Commit
512db8a9
authored
Aug 07, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加
及修改脚本
parent
7e5ef071
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
113 additions
and
77 deletions
+113
-77
delete_All_Data.sh
qa_shell_script/script_by_Contorller/delete_All_Data.sh
+74
-74
landing_url.sh
qa_shell_script/script_by_Contorller/landing_url.sh
+20
-0
paycenter_delete_bankcard_xjd.sh
...ipt/script_by_Contorller/paycenter_delete_bankcard_xjd.sh
+16
-0
paycenter_insert_bankcard_xjd.sh
...ipt/script_by_Contorller/paycenter_insert_bankcard_xjd.sh
+2
-2
redpacket_insert_coupon_xjd.sh
...cript/script_by_Contorller/redpacket_insert_coupon_xjd.sh
+1
-1
No files found.
qa_shell_script/script_by_Contorller/delete_All_Data.sh
View file @
512db8a9
This diff is collapsed.
Click to expand it.
qa_shell_script/script_by_Contorller/landing_url.sh
0 → 100644
View file @
512db8a9
#!/bin/bash
ip
=
$1
phone_no
=
$2
registerFrom
=
$3
#"请输入用户手机号:" phone_no
len
=
`
echo
$phone_no
|awk
'{print length($0)}'
`
if
[
$len
-ne
11
]
;
then
echo
"请输入11位手机号!"
fi
if
[
-z
"
$registerFrom
"
]
;
then
registerFrom
=
214
fi
#ip=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"`
resp
=
`
curl
"http://
$ip
:7037/app/login?registerFrom=
$registerFrom
&phoneNo=
$phone_no
"
2>/dev/null
`
token
=
`
echo
$resp
| jq
".data.token"
|
sed
"s/
\"
//g"
`
echo
$token
echo
"http://
$ip
:7001/app-landing?token=
$token
®isterFrom=
$registerFrom
&channelId=1"
qa_shell_script/script_by_Contorller/paycenter_delete_bankcard_xjd.sh
0 → 100644
View file @
512db8a9
#!/bin/bash
ip
=
$1
card_no
=
$2
#"请输入要删除的银行卡号或者该银行卡绑卡的手机号:" card_no
mysql
-h
"
$ip
"
-p
"3306"
-u
"qa"
-p
"qatest"
<<
EOF
delete from payment_center.bank_card where card_no=
$card_no
;
delete from payment_center.bank_card_detail where card_no=
$card_no
;
delete from payment_center.card_bind_info where card_no=
$card_no
;
delete from payment_center.bank_card where user_id=(select id from payment_center.user where phone_no =
$card_no
);
delete from payment_center.bind_card_order where user_id=(select id from payment_center.user where phone_no =
$card_no
);
delete from payment_center.card_bind_info where user_id=(select id from payment_center.user where phone_no =
$card_no
);
EOF
echo
"done!!!"
qa_shell_script/script_by_Contorller/paycenter_insert_bankcard_xjd.sh
View file @
512db8a9
...
...
@@ -3,7 +3,7 @@ ip=$1
phone_no
=
$2
card_no
=
622700000
`
date
+%s
`
echo
$card_no
card_last
=
`
echo
${
card_no
:
(-4)
:4
}
`
mysql
-h
"
$ip
"
-p
"3306"
-u
"qa"
-p
"qatest"
<<
EOF
use payment_center;
delete from payment_center.bank_card where user_id=111112222233333;
...
...
@@ -15,7 +15,7 @@ delete from payment_center.bank_card_detail where card_no='$card_no';
INSERT INTO payment_center.bank_card (user_id, card_no, card_top, card_last, card_type, card_holder_name, preserve_phone_no, bank_name, bank_code, branch_no, branch_name, city, province, valid_from, valid_thru)
VALUES
(111112222233333, '
$card_no
', '622700', '
1234
', 2, N'小测', '18610271234', N'建设银行', 'CCB', NULL, NULL, '110102', '110000', NULL, NULL);
(111112222233333, '
$card_no
', '622700', '
$card_last
', 2, N'小测', '18610271234', N'建设银行', 'CCB', NULL, NULL, '110102', '110000', NULL, NULL);
INSERT INTO payment_center.bank_card_detail (bank_name, bank_code, card_no, account_property, card_type, is_valid)
VALUES
(N'建设银行', 'CCB', '
$card_no
', '00', 2, 1);
...
...
qa_shell_script/script_by_Contorller/redpacket_insert_coupon_xjd.sh
View file @
512db8a9
...
...
@@ -11,6 +11,6 @@ echo "unique_business_id:"$unique_business_id
mysql
-h
"
$ip
"
-p
"3306"
-u
"qa"
-p
"qatest"
<<
EOF
INSERT INTO redpacket.tb_coupon (unique_business_id, phone, group_id, name, category, category_info, category_type, category_type_info, valid_start_date, valid_end_date, sms_reminder_on_invalid, status, created_at, used_at, updated_at, mark, uid)
VALUES
('
$unique_business_id
', '
$phone_no
', 10000574, N'小测福利', 8, '{
\"
loanTerm
\"
:[
\"
1
\"
,
\"
2
\"
,
\"
3
\"
]}', 3, '{
\"
rebate
\"
:
$account
}', '2017-01-01 00:00:13', '2020-06-14 00:00:23', 0, 2, '
$date
', NULL, '
$date
', 1, NULL);
('
$unique_business_id
', '
$phone_no
', 10000574, N'小测福利
~
', 8, '{
\"
loanTerm
\"
:[
\"
1
\"
,
\"
2
\"
,
\"
3
\"
]}', 3, '{
\"
rebate
\"
:
$account
}', '2017-01-01 00:00:13', '2020-06-14 00:00:23', 0, 2, '
$date
', NULL, '
$date
', 1, NULL);
EOF
echo
"done!!!"
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