Commit 15197404 authored by qa_quantgroup's avatar qa_quantgroup

asdf

parent feca6ec4
...@@ -27,16 +27,28 @@ then ...@@ -27,16 +27,28 @@ then
then then
echo "-------link-$project--$config_path/public/$project_type/$project.*----/home/quant_group/$project/$file " echo "-------link-$project--$config_path/public/$project_type/$project.*----/home/quant_group/$project/$file "
cp -r $config_path/public/$project_type/${project}.* /home/quant_group/${project}/$file cp -r $config_path/public/$project_type/${project}.* /home/quant_group/${project}/$file
if [ $? != 0 ];then
exit -1
fi
else else
echo "-------link-$project--$config_path/$project_type/$project.*----/home/quant_group/$project/$file " echo "-------link-$project--$config_path/$project_type/$project.*----/home/quant_group/$project/$file "
cp -r $config_path/$project_type/${project}.* /home/quant_group/${project}/$file cp -r $config_path/$project_type/${project}.* /home/quant_group/${project}/$file
if [ $? != 0 ];then
exit -1
fi
fi fi
else else
if $is_public_ip && [ -n "$is_public_ip" ] if $is_public_ip && [ -n "$is_public_ip" ]
then then
ln -s $config_path/public/$project_type/${project}.* /home/quant_group/${project}/$file ln -s $config_path/public/$project_type/${project}.* /home/quant_group/${project}/$file
if [ $? != 0 ];then
exit -1
fi
else else
ln -s $config_path/$project_type/${project}.* /home/quant_group/${project}/$file ln -s $config_path/$project_type/${project}.* /home/quant_group/${project}/$file
if [ $? != 0 ];then
exit -1
fi
fi fi
if [ "$project" = "xyqb-mall" ] if [ "$project" = "xyqb-mall" ]
......
#!/bin/bash
ip=$1
branch_name=$2
date=`date "+%Y-%m-%d %H:%M:%S"`
function Git_branch(){
if [ -z $2 ]; then
echo "查看所有服务分支 $date"
expect -c "
set timeout 10
spawn ssh root@${ip}
expect \"]#\"
send \"for x in `find /home/quant_group/ -maxdepth 2 -name .git`;do cd $(dirname $x);echo $(dirname $x):;git branch | grep '*';done\r\"
set timeout -1
expect \"]#\"
send \"exit\r\"
expect eof;"
else
echo "查看服务$2的分支 $date"
expect -c "
set timeout 10
spawn ssh root@${ip}
expect \"]#\"
send \"cd /home/quant_group/$2\r\"
expect \"]#\"
send \"git branch\r\"
set timeout -1
expect \"]#\"
send \"exit\r\"
expect eof;"
fi
}
Git_branch $1 $2
\ No newline at end of file
...@@ -46,5 +46,8 @@ else ...@@ -46,5 +46,8 @@ else
fi fi
$command $command
if [ $? != 0 ];then
exit -1
fi
# 第二步 不关机使得nginx生效 # 第二步 不关机使得nginx生效
nginx -t; nginx -s reload nginx -t; nginx -s reload
\ No newline at end of file
...@@ -102,7 +102,7 @@ new pClass().init(true, "java", "7069", "", "notify", true, "fund_pay", "notify. ...@@ -102,7 +102,7 @@ new pClass().init(true, "java", "7069", "", "notify", true, "fund_pay", "notify.
// ui---- // ui----
new pClass().init(true, "ui", "7032", "", "op-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "运营系统-ui", "", "", ""); new pClass().init(true, "ui", "7032", "", "op-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "运营系统-ui", "", "", "");
new pClass().init(true, "ui", "7040", "", "activity-ui", false, "QG", null, "src/app/config.js", "npm run qa", "node7", 1, "活动中心-ui", "", "", ""); new pClass().init(true, "ui", "7040", "", "activity-ui", false, "QG", null, "src/app/config.js", "npm run build", "node7", 1, "活动中心-ui", "", "", "");
new pClass().init(true, "ui", "7011", "financial.xyqb.com", "financial-system-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "财务系统-ui", "", "", ""); new pClass().init(true, "ui", "7011", "financial.xyqb.com", "financial-system-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "财务系统-ui", "", "", "");
new pClass().init(true, "ui", "7030", "", "gyxd-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "广源小贷-ui", "", ""); new pClass().init(true, "ui", "7030", "", "gyxd-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "广源小贷-ui", "", "");
new pClass().init(true, "ui", "7008", "off.xyqb.com", "offline-ui", false, "QG", null, "src/app/config/env.config.js", "npm run build", "node7", 1, "线下白条-ui", "", "", ""); new pClass().init(true, "ui", "7008", "off.xyqb.com", "offline-ui", false, "QG", null, "src/app/config/env.config.js", "npm run build", "node7", 1, "线下白条-ui", "", "", "");
...@@ -125,6 +125,8 @@ new pClass().init(false, "ui", "7016", "", "flow-op-ui", true, "ui", null, "src/ ...@@ -125,6 +125,8 @@ new pClass().init(false, "ui", "7016", "", "flow-op-ui", true, "ui", null, "src/
new pClass().init(false, "ui", "7051", "", "h5-ui", true, "ui", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "h5平台业务", "李长城", "", ""); new pClass().init(false, "ui", "7051", "", "h5-ui", true, "ui", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "h5平台业务", "李长城", "", "");
new pClass().init(true, "ui", "7057", "", "ka-spider-center-ui", true, "ui", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "新版授信UI", "郑少文", "", ""); new pClass().init(true, "ui", "7057", "", "ka-spider-center-ui", true, "ui", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "新版授信UI", "郑少文", "", "");
new pClass().init(true, "ui", "7067", "", "new-op-ui", true, "ui", null, "src/config/env.config.js", "npm run build", "node7", 1, "运营系统 vue", "孙小英", "", ""); new pClass().init(true, "ui", "7067", "", "new-op-ui", true, "ui", null, "src/config/env.config.js", "npm run build", "node7", 1, "运营系统 vue", "孙小英", "", "");
new pClass().init(true, "ui", "7070", "", "customer-op-ui", true, "ui", null, "src/config/env.config.js", "npm run build", "node7", 1, "外部查询-ui", "", "", "");
// node // node
new pClass().init(true, "node", "7018", "", "AppBackend", false, "QG", null, "config/environment/test.js", "forever start -a -s --uid AppBackend bin/www", null, 1, "APP后台服务-server", "", "forever stop AppBackend", ""); new pClass().init(true, "node", "7018", "", "AppBackend", false, "QG", null, "config/environment/test.js", "forever start -a -s --uid AppBackend bin/www", null, 1, "APP后台服务-server", "", "forever stop AppBackend", "");
......
...@@ -167,8 +167,8 @@ tranceConfig java "139.198.2.95:2231" "192.168.4.22:7031" "192.168.4.22" "xyqb.p ...@@ -167,8 +167,8 @@ tranceConfig java "139.198.2.95:2231" "192.168.4.22:7031" "192.168.4.22" "xyqb.p
#4.156 #4.156
tranceConfig java "http:\/\/192.168.4.241\/" "http:\/\/221.207.229.3:17500\/wlpf\/HttpServer\/XFXD_INPUT_SVR\/" "192.168.4.156" "baitiao-zhitou.properties" tranceConfig java "http:\/\/192.168.4.241\/" "http:\/\/221.207.229.3:17500\/wlpf\/HttpServer\/XFXD_INPUT_SVR\/" "192.168.4.156" "baitiao-zhitou.properties"
tranceConfig java "http:\/\/192.168.4.156:7017\/eureka\/" "http:\/\/192.168.4.152:7017\/eureka\/" "192.168.4.156" "baitiao.properties" #tranceConfig java "http:\/\/192.168.4.156:7017\/eureka\/" "http:\/\/192.168.4.152:7017\/eureka\/" "192.168.4.156" "baitiao.properties"
tranceConfig java "eureka.client.serviceUrl.defaultZone=http://192.168.4.156:7017/eureka/" "eureka.client.serviceUrl.defaultZone=http://192.168.4.17:7017/eureka/" "192.168.4.156" "baitiao-zhitou.properties"
#微信环境修改,请勿删除,可以注释 #微信环境修改,请勿删除,可以注释
tranceConfig java "wx89894cd83d117b26" "wx5b2e77c58fdcf1a5" "192.168.4.22" "xyqb-user2.properties" tranceConfig java "wx89894cd83d117b26" "wx5b2e77c58fdcf1a5" "192.168.4.22" "xyqb-user2.properties"
tranceConfig java "11fb7f6a8b8edf2776a72c2f5624229c" "feb3c0705c1200f3759052310bde3369" "192.168.4.22" "xyqb-user2.properties" tranceConfig java "11fb7f6a8b8edf2776a72c2f5624229c" "feb3c0705c1200f3759052310bde3369" "192.168.4.22" "xyqb-user2.properties"
......
...@@ -4,4 +4,4 @@ grep "_by_name fail" log ...@@ -4,4 +4,4 @@ grep "_by_name fail" log
if [ $? = 0 ];then if [ $? = 0 ];then
exit -1 exit -1
fi fi
echo "post_build_script finish" echo "post_build_script finish~"
#!/bin/bash
ip=$1
phone_no=$2
len=`echo $phone_no|awk '{print length($0)}'`
if [ $len -ne 11 ];then
echo "请输入11位手机号!"
exit -1
fi
seq=XYBT`date +%s%N`
mysql -h"$ip" -p"3306" -u"qa" -p"qatest" <<EOF
use xyqb;
update xyqb.loan_application_history
set progress=39
where business_type=1 and is_active=1 and user_id=(
select id from xyqb_user.user where phone_no='$phone_no'
);
update xyqb.baitiao_account
set status=1,credit_amount=10000
where user_id=(
select id from xyqb_user.user where phone_no='$phone_no'
);
insert into xyqb.baitiao_consume_history
(user_id,order_id,remaining_amount,consume_type,consume_seq)
values
((select id from xyqb_user.user where phone_no='$phone_no'),-1,
(select credit_amount from baitiao_account
where user_id=(select id from xyqb_user.user where phone_no='$phone_no')),0,'$seq');
update xyqb.baitiao_account
set pay_pwd='7da26eb97215a944743cc22d49e39f0d', pay_pwd_salt='NkUzMjY3QjIzQTEzMjdBNDQzM0M2MTIz'
where user_id=(
select id from xyqb_user.user where phone_no='$phone_no');
EOF
echo "done!!! `date`"
...@@ -23,5 +23,5 @@ if [ -n "$result" ];then ...@@ -23,5 +23,5 @@ if [ -n "$result" ];then
#echo "token: $token" #echo "token: $token"
echo "$date http://$ip:7001/app-landing?token=$token&registerFrom=$registerFrom&channelId=1" echo "$date http://$ip:7001/app-landing?token=$token&registerFrom=$registerFrom&channelId=1"
else else
echo "获取token失败,请检查$ip的cash-loan-flow" echo "获取token失败,请检查$ipxyqb和cash-loan-flow"
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment