添加token显示

This commit is contained in:
yizhaorong
2020-06-10 22:52:41 +08:00
parent a17d2f31ed
commit bf57976fc6
4 changed files with 6 additions and 1 deletions

View File

@@ -121,7 +121,7 @@ java -jar intranet_app_manager-1.0.0.jar
```shell
# 上传到APP管理平台
result=$(curl -F "file=@$WORKSPACE/build/Ewt360_debug/Ewt360.ipa" http://172.16.241.203/app/upload)
result=$(curl -F "file=@$WORKSPACE/build/Ewt360_debug/Ewt360.ipa" -F "token=ec7551847a2faa3988172e648d554c20" http://172.16.241.203/app/upload)
code_url=$(echo $result | sed 's/.*\(http.*\)",.*/\1/g')
echo "code_url="$code_url > $WORKSPACE/code.txt
```

BIN
images/index.jpg Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -39,6 +39,7 @@ public class AppController {
List<AppViewModel> apps = this.appService.findByUser(user, request);
request.setAttribute("apps", apps);
request.setAttribute("baseURL", PathManager.request(request).getBaseURL());
request.setAttribute("token", user.getToken());
} catch (Exception e) {
e.printStackTrace();
}

View File

@@ -38,6 +38,10 @@
<a class="ng-binding" th:href="${baseURL} + '/apps'">我的应用</a>
</div>
<i class="icon-angle-right ng-hide"></i>
<div class="navbar-title primary-title">
<span>我的token:[[${token}]]</span>
</div>
<i class="icon-angle-right ng-hide"></i>
</nav>
</div>
</div>