- 參考:
- http://edwardkuo.github.io/paper/2016/11/28/Azure/O365API/
- [Microsoft Teams]使用Webhook傳訊息到Teams頻道
- https://learn.microsoft.com/zh-tw/training/modules/msteams-webhooks-connectors/5-exercise-incoming-webhooks
- 作法:
- 建立Webhook連接器。
- 程式呼叫weebhook發送訊息。
- 簡易:
- {"text":"message"}
- {"text":"message","title":"this is title."}
- 進階:
- {"text":"message","title":"this is title."
"sections": [
{
"activityTitle": "Section標題",
"activitySubtitle": "Section次標題",
"activityText": "Section內文"
}]"
} - {"text":"message","title":"this is title."
"sections": [
{
"activityTitle": "Section標題",
"activitySubtitle": "Section次標題",
"activityText": "Section內文"
}
,{
"title": "很像表格的title",
"facts": [
{
"name": "欄位名",
"value": "內文"
},...
]"
} - potentialAction ...etc
2023年5月31日 星期三
[筆記]發送訊息至Teams頻道(webhook連接器)
2022年12月29日 星期四
2022年10月3日 星期一
[2022.LEARN.019][筆記]重設防火牆dns等設定
問題:
1.微軟相關服務,帳號認證都有些問題。服務常斷線。
2.安裝部分程式會出現,出現"SmartScreen 篩選工具目前無法使用"。
解法:
參考網址:https://answers.microsoft.com/zh-hant/windows/forum/all/window-10/69a37fa9-f689-4e0e-83db-0f31aa081173
重設防火墻,或者,搜cmd 右鍵點擊,選擇以系統管理員身份運行,分別執行下面命令重設網路協議。
Netsh int ip reset
Netsh winhttp reset proxy
Netsh winsock reset
Netsh advfirewall reset
Ipconfig /flushdns
--其他方法
ipconfig /all 看看DNS 是不是 1.1.1.1 跟 8.8.8.8
如果是 使用 ipconfig /renew 重抓
--用Edge登入,或預設瀏覽器看看吧!!
2022年9月13日 星期二
[2022.LEARN.018][NOTE][SHOPEE]蝦皮訂單狀態(API)
參考:
- https://ithelp.ithome.com.tw/articles/10285209
- shopee api
- IN_CANCEL:提出取消?(有出現在LOG但沒有在蝦皮流程表中。)
- SHIPPED:物流中
- READY_TO_SHIP:付款後準備出貨
- COMPLETED:訂單完成(可能生命週期結束)
- PROCESSED:安排物流
- TO_CONFIRM_RECEIVE:標記收到貨
- CANCELLED:已取消
- UNPAID:未付款(可能開始的狀態)
- TO_RETURN:退貨
- RETRY_SHIP:投遞失敗,可能會回到準備出貨。(這筆也沒在LOG中出現過)
2022年8月6日 星期六
2022年7月11日 星期一
[2022.LEARN.016][筆記]Web API Controller可以Partial嗎?
問題:
- 同事問:Web API Controller太肥太多方法(主要是不好查)。
- 不想改路由的情況下,可以像patial class那樣使用嗎?
方法:
- public partial class TestController:ApiController{程式一}
- public partial class TestController:ApiController{程式二}
- 就是兩個controller都加上partail就可以(當然.cs的檔名要不同或是分開目錄放)。
- 若有使用[RoutePrefix("Test")],只要其中一個Controller有設定就可以。
2022年7月5日 星期二
[2022.LEARN.015][筆記]base64影像在safari瀏覽器上無法呈現
問題:Html Image使用base64影像的網址,Chrome等瀏覽器正常,但Safari卻無法呈現。
ex:<img src='data:image/png;base64,iVB....' >
參考:ex:<img src='data:image/png;base64,iVB....' >
- https://stackoverflow.com/questions/27396376/base64-image-tag-in-safari-did-not-showed-up
- 其中提到的解法:
// Add an actual base64 string
var encodedImgString = 'data:image/png;base64,iVBORw0KGgoAAA...';
// Create an image, set img source and cross origin attribute
var iosImg = new Image;
iosImg.src = encodedImgString;
iosImg.crossOrigin = 'Anonymous';
// Change this to target your element and add it wherever you need it to appear document.body.appendChild(iosImg);
- 前端處理起來麻煩的話,可能會取向改後端產生圖片網址。
- 文中的解法是new一個Image的物件,然後把Image物件加到畫面。
訂閱:
文章 (Atom)
