'commit'
continuous-integration/drone/push Build is passing Details

master
黄海 4 years ago
parent ddfc6fda53
commit 4b21f5c666

@ -5,8 +5,11 @@
</component>
<component name="ChangeListManager">
<list default="true" id="19c8c37d-a056-451c-a29d-fb612b9a3e2f" name="Default Changelist" comment="commit">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Business/CaptchaRelate/CaptchaController/CaptchaController.go" beforeDir="false" afterPath="$PROJECT_DIR$/Business/CaptchaRelate/CaptchaController/CaptchaController.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Tools/Distribute.go" beforeDir="false" afterPath="$PROJECT_DIR$/Tools/Distribute.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/WinBuild/Distribute.exe" beforeDir="false" afterPath="$PROJECT_DIR$/WinBuild/Distribute.exe" afterDir="false" />
<change beforePath="$PROJECT_DIR$/build/Config/logo.txt" beforeDir="false" afterPath="$PROJECT_DIR$/build/Config/logo.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/build/dsSzxy" beforeDir="false" afterPath="$PROJECT_DIR$/build/dsSzxy" afterDir="false" />
<change beforePath="$PROJECT_DIR$/一键发布.cmd" beforeDir="false" afterPath="$PROJECT_DIR$/一键发布.cmd" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

@ -32,9 +32,8 @@ func main() {
SftpUtil.UploadDirectory(sftpClient, buildPath, ConfigUtil.DistributeRemotePath)
//执行SSH命令行,授权
cli.Run("chmod +x /usr/local/dsMin/dsSzxy/dsSzxy")
cli.Run("chmod +x /usr/local/dsMin/dsSzxy/start.sh")
cli.Run("chmod +x /usr/local/dsMin/dsSzxy/debug.sh")
cli.Run("chmod +x /usr/local/dsMin/dsSzxy/stop.sh")
cli.Run("chmod +x /usr/local/dsMin/dsSzxy/*.sh")
cli.Run("cd /usr/local/dsMin/dsSzxy && dos2unix *.sh")
//启动
cli.Run("cd /usr/local/dsMin/dsSzxy && ./start.sh")
log.Println("通用工具服务上传并启动成功!")

Binary file not shown.

@ -5,4 +5,6 @@
| (_| \__ \____) / / > <| |_| |
\__,_|___/_____/___|/_/\_\\__, |
__/ |
|___/
|___/
Created By HuangHai 2021-08-05
http://patorjk.com/software/taag/#p=display&f=Big&t=dsSzxy

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,7 @@
go get -u github.com/jteeuwen/go-bindata/...
go-bindata fonts
sed -i "s/package main/package base64Captcha/g" bindata.go
https://github.com/jteeuwen/go-bindata

@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<img id="capt" src=""/><br/>
<input id="captvalue" placeholder="请输入验证码"/><br/>
<input type="button" name="save" value="提交" onclick="submit()"/>
<script>
var curCaptId = "";
//得到图形验证码和id
$.ajax({
type: "GET",
url: "/dsSzxy/captchaRelate/getCaptcha",
data: {},
dataType: "JSON",
success: function (result) {
curCaptId = result.captcha.id;
document.getElementById("capt").src = result.captcha.base_64_blob;
}
});
//提交验证码和id
function submit() {
var capt = document.getElementById("captvalue").value;
var postdata = {
"id": curCaptId,
"capt": capt
};
$.ajax({
type: "POST",
url: "/dsSzxy/captchaRelate/verifyCaptcha",
data: postdata,
dataType: "JSON",
success: function (result) {
console.log(result.success);
if (result.success) {
alert("验证成功");
} else {
alert("验证错误!" );
}
}
});
}
</script>
</body>
</html>

@ -9,7 +9,9 @@ go build -gcflags "all=-N -l" -o ./build/dsSzxy main.go
:: 拷贝资源文件
xcopy .\Shell\* .\build\ /y /e /i /q
xcopy .\static\* .\build\static /y /e /i /q
xcopy .\Config\* .\build\Config /y /e /i /q
xcopy .\fonts\* .\build\fonts /y /e /i /q
:: 上传文件
.\WinBuild\Distribute.exe

Loading…
Cancel
Save