mirror of
https://github.com/Jonnyan404/memos-bber.git
synced 2026-04-25 03:58:37 +09:00
修复大bug
This commit is contained in:
+10
-8
@@ -7,6 +7,14 @@ get_info(function (info) {
|
|||||||
//已经有绑定信息了,折叠
|
//已经有绑定信息了,折叠
|
||||||
$('#blog_info').hide()
|
$('#blog_info').hide()
|
||||||
}
|
}
|
||||||
|
var memoNow = info.memo_lock
|
||||||
|
if(memoNow !== "PUBLIC"){
|
||||||
|
$('#locked').show()
|
||||||
|
$('#unlock').hide()
|
||||||
|
}else{
|
||||||
|
$('#locked').hide()
|
||||||
|
$('#unlock').show()
|
||||||
|
}
|
||||||
$('#apiUrl').val(info.apiUrl)
|
$('#apiUrl').val(info.apiUrl)
|
||||||
if (info.open_action === 'upload_image') {
|
if (info.open_action === 'upload_image') {
|
||||||
//打开的时候就是上传图片
|
//打开的时候就是上传图片
|
||||||
@@ -286,17 +294,11 @@ $('#content_submit_text').click(function () {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
let lockNow = '';
|
|
||||||
function sendText() {
|
function sendText() {
|
||||||
get_info(function (info) {
|
get_info(function (info) {
|
||||||
if (info.status) {
|
if (info.status) {
|
||||||
//信息满足了
|
//信息满足了
|
||||||
console.log(info.memo_lock)
|
console.log(info.memo_lock)
|
||||||
if(info.memo_lock){
|
|
||||||
lockNow == info.memo_lock
|
|
||||||
}else{
|
|
||||||
lockNow = 'Public'
|
|
||||||
}
|
|
||||||
$.message({message: '发送中~~'})
|
$.message({message: '发送中~~'})
|
||||||
//$("#content_submit_text").attr('disabled','disabled');
|
//$("#content_submit_text").attr('disabled','disabled');
|
||||||
let content = $('#content').val()
|
let content = $('#content').val()
|
||||||
@@ -305,8 +307,8 @@ function sendText() {
|
|||||||
type:"POST",
|
type:"POST",
|
||||||
data:JSON.stringify({
|
data:JSON.stringify({
|
||||||
'content': content,
|
'content': content,
|
||||||
'visibility': lockNow,
|
'visibility': info.memo_lock || '',
|
||||||
'resourceIdList': info.resourceIdList,
|
'resourceIdList': info.resourceIdList || [],
|
||||||
}),
|
}),
|
||||||
contentType:"application/json;",
|
contentType:"application/json;",
|
||||||
dataType:"json",
|
dataType:"json",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "__MSG_extName__",
|
"name": "__MSG_extName__",
|
||||||
"version": "2022.11.8",
|
"version": "2022.11.10",
|
||||||
"action": {
|
"action": {
|
||||||
"default_popup": "popup.html",
|
"default_popup": "popup.html",
|
||||||
"default_icon": "assets/logo_24x24.png",
|
"default_icon": "assets/logo_24x24.png",
|
||||||
|
|||||||
Reference in New Issue
Block a user