if [ ! -f "./service/config/setting.js" ];then
echo ""
else
rm -f ./service/config/setting.js
fi
if [ $USE_LOGIN ]; then
USE_LOGIN=$USE_LOGIN
else
USE_LOGIN="http://898101.0.0.1/api/login"
fi
if [ $searchOrdinary ]; then
searchOrdinary=$searchOrdinary
else
searchOrdinary="http://127.0.0.1/api/search/common"
fi
if [ $searchLabel ]; then
searchLabel=$searchLabel
else
searchLabel="http://127.0.0.1/api/search/common"
fi
if [ $searchVideo ]; then
searchVideo = $searchVideo
else
searchVideo="http://127.0.0.1/api/search/common"
fi
if [ $taskManager ]; then
taskManager=$taskManager
else
taskManager="http://127.0.0.1/api/search/common"
fi
echo "
pythonAPI: {
//userLogin : "http://10.23.102.148:5002/api/login", // api
userLogin : "$USE_LOGIN",
video: "", //
searchOrdinary: "$searchOrdinary", //
//searchLabel: "/api/search/result", //
searchLabel: "$searchLabel",
searchVideo : "$searchVideo", //
taskManager: "$taskManager" //
};" >> ./service/config/setting.js