mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-28 03:50:10 +00:00
Merge 6052329c0b
into a7529c7498
This commit is contained in:
commit
0ce4896302
@ -85,7 +85,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- curl -sL https://git.io/goreleaser > goreleaser
|
- curl -sL https://git.io/goreleaser > goreleaser
|
||||||
- chmod +x goreleaser
|
- chmod +x goreleaser
|
||||||
- ./scripts/version.sh ./goreleaser --snapshot --skip-publish --clean
|
- ./scripts/version.sh ./goreleaser --snapshot --skip=publish --clean
|
||||||
- wget https://builds.hrfee.pw/upload.py
|
- wget https://builds.hrfee.pw/upload.py
|
||||||
- pip3 install requests
|
- pip3 install requests
|
||||||
- bash -c 'sftp -i /id_rsa2 -o StrictHostKeyChecking=no root@161.97.102.153:/mnt/redoc <<< $"put docs/swagger.json jfa-go.json"'
|
- bash -c 'sftp -i /id_rsa2 -o StrictHostKeyChecking=no root@161.97.102.153:/mnt/redoc <<< $"put docs/swagger.json jfa-go.json"'
|
||||||
@ -164,7 +164,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- curl -sL https://git.io/goreleaser > goreleaser
|
- curl -sL https://git.io/goreleaser > goreleaser
|
||||||
- chmod +x goreleaser
|
- chmod +x goreleaser
|
||||||
- ./scripts/version.sh ./goreleaser --snapshot --skip-publish --clean
|
- ./scripts/version.sh ./goreleaser --snapshot --skip=publish --clean
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
@ -267,9 +267,8 @@ class ReferralCard {
|
|||||||
set code(c: string) {
|
set code(c: string) {
|
||||||
this._code = c;
|
this._code = c;
|
||||||
let url = window.location.href;
|
let url = window.location.href;
|
||||||
for (let split of ["#", "?", "account", "my"]) {
|
let pathArray = url.split('/');
|
||||||
url = url.split(split)[0];
|
url = `${pathArray[0]}//${pathArray[2]}/`;
|
||||||
}
|
|
||||||
if (url.slice(-1) != "/") { url += "/"; }
|
if (url.slice(-1) != "/") { url += "/"; }
|
||||||
url = url + "invite/" + this._code;
|
url = url + "invite/" + this._code;
|
||||||
this._url = url;
|
this._url = url;
|
||||||
|
Loading…
Reference in New Issue
Block a user