修复已知问题
parent
55fe450d62
commit
464c5d7f6a
|
@ -84,6 +84,9 @@ public class GiteeImgBedUtils {
|
|||
* <p>删除</p>
|
||||
*/
|
||||
public static boolean delete(String path) {
|
||||
if(path.contains("default")) {
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
String targetUrl = GiteeImgBedUtils.deleteFileUrl(path);
|
||||
Map<String, Object> map = getDeleteBodyMap(path);
|
||||
|
|
|
@ -95,16 +95,16 @@
|
|||
</form>
|
||||
</td>
|
||||
<td>
|
||||
<form th:action="@{/admin/merchant/delete-merchant(id=${mt.getId()})}" method="post">
|
||||
<input type="submit" value="删除" style="width: 65px;"
|
||||
onclick="if (confirm('确认删除该商户?')==false)return false;">
|
||||
</form>
|
||||
<!-- <form th:action="@{/admin/merchant/delete-merchant(id=${mt.getId()})}" method="post">-->
|
||||
<!-- <input type="submit" value="删除" style="width: 65px;"-->
|
||||
<!-- onclick="if (confirm('确认删除该商户?')==false)return false;">-->
|
||||
<!-- </form>-->
|
||||
<form th:action="@{/admin/merchant/update-merchant(email=${mt.getEmail()},state=0,id=${mt.getId()})}" method="post">
|
||||
<input th:if="${mt.getState()}==1" type="submit" value="停用" style="width: 65px;background: deepskyblue; color: white; font-weight: bold"
|
||||
<input th:if="${mt.getState()}==1" type="submit" value="停用" style="width: 65px;background: orangered; color: white; font-weight: bold"
|
||||
onclick="if (confirm('确认停用该商户?')==false)return false; ">
|
||||
</form>
|
||||
<form th:action="@{/admin/merchant/update-merchant(email=${mt.getEmail()},state=1,id=${mt.getId()})}" method="post">
|
||||
<input th:if="${mt.getState()}==0" type="submit" value="启用" style="width: 65px;background: orangered; color: white; font-weight: bold"
|
||||
<input th:if="${mt.getState()}==0" type="submit" value="启用" style="width: 65px;background: deepskyblue; color: white; font-weight: bold"
|
||||
onclick="if (confirm('确认启用商户?')==false)return false; ">
|
||||
</form>
|
||||
</td>
|
||||
|
|
|
@ -153,16 +153,16 @@
|
|||
</b>
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<button type="button" style="background: orangered;color: white;border-radius: 5px;width: 50px;height: 30px"
|
||||
<!-- <button type="button" style="background: orangered;color: white;border-radius: 5px;width: 50px;height: 30px"
|
||||
th:onclick="delGoods('[[${goods.getId()}]]')">
|
||||
<b>删除</b>
|
||||
</button>
|
||||
</button>-->
|
||||
<button type="submit" style="background: deepskyblue;color: white;border-radius: 5px;width: 50px;height: 30px"
|
||||
onclick="if (confirm('确认修改该商品的信息?')==false) {return false;} else {loading()} ">
|
||||
<b>修改</b>
|
||||
</button>
|
||||
|
||||
<button type="button" style="background: grey;color: white;border-radius: 5px;width: 50px;height: 30px"
|
||||
<button type="button" style="background: orangered;color: white;border-radius: 5px;width: 50px;height: 30px"
|
||||
th:if="${goods.getState()==1}"
|
||||
th:onclick="offGoods('[[${goods.getId()}]]')">
|
||||
<b>下架</b>
|
||||
|
|
Loading…
Reference in New Issue