Step 1 會取得一組 session_id ,請填入頁面中的{session_id}, pk 請填入 public key
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<scriptsrc="https://js.stripe.com/v3/"></script> <script> var stripe = Stripe("pk"); stripe .redirectToCheckout({ // Make the id field from the Checkout Session creation API response // available to this file, so you can provide it as parameter here // instead of the {{CHECKOUT_SESSION_ID}} placeholder. sessionId: "{session_id}", }) .then(function (result) { // If `redirectToCheckout` fails due to a browser or network // error, display the localized error message to your customer // using `result.error.message`. }); </script>
Card Payments with Sources Use Sources to accept card payments from around the world.
Use of this API is no longer recommended. We recommend adopting the Payment Intents API. This new integration lets you benefit from Dynamic 3D Secure and helps you prepare for Strong Customer Authentication regulation in Europe.
> dotnet "{path of sonar scanner}\SonarScanner.MSBuild.dll" begin /k:"{project name}" /o:{group name} /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="{your token}"
輸出結果
1 2 3 4
Using the .NET Core version of the Scanner for MSBuild Pre-processing started. 中略... 16:40:31.855 Pre-processing succeeded.
建置專案
1
dotnet build
輸出結果
1 2 3 4
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core Copyright (C) Microsoft Corporation. All rights reserved. 中略... Build succeeded.
上傳結果
1
> dotnet "{path of sonar scanner}\SonarScanner.MSBuild.dll" end /d:sonar.login="{your token}"
輸出結果
1 2 3 4 5 6 7 8 9 10 11 12
SonarScanner for MSBuild 4.6.1 Using the .NET Core version of the Scanner for MSBuild Post-processing started. 中略... INFO: Analysis total time: 21.446 s INFO: ------------------------------------------------------------------------ INFO: EXECUTION SUCCESS INFO: ------------------------------------------------------------------------ INFO: Total time: 2:27.021s INFO: Final Memory: 24M/72M INFO: ------------------------------------------------------------------------ The SonarQube Scanner has finished
a. 每週一過中午 12 點不能選週二及以前的日期 b. 每週二過中午 12 點不能選週三及以前的日期 c. 每週三過中午 12 點不能選週四及以前的日期 d. 每週四過中午 12 點不能選週五及以前的日期 e. 每週五過中午 12 點不能選隔週一及以前的日期 f. 每週日都不能選 g. 90 天以後的日期不能選 h. 需指導我們如何讓特定日期不能選,以因應遇到國定假日的狀況 i. 預設為選擇最近一個可以使用的日期 j. 改成中文
///<summary> /// Initializes a new instance of the <see cref="HomeController" /> class. ///</summary> publicHomeController(ILogger<HomeController> logger) { this._logger = logger; }
Logs that contain the most detailed messages. These messages may contain sensitive application data. These messages are disabled by default and should never be enabled in a production environment.
Debug
1
Logs that are used for interactive investigation during development. These logs should primarily contain information useful for debugging and have no long-term value.
Information
2
Logs that track the general flow of the application. These logs should have long-term value.
Warning
3
Logs that highlight an abnormal or unexpected event in the application flow, but do not otherwise cause the application execution to stop.
Error
4
Logs that highlight when the current flow of execution is stopped due to a failure. These should indicate a failure in the current activity, not an application-wide failure.
Critical
5
Logs that describe an unrecoverable application or system crash, or a catastrophic failure that requires immediate attention.
None
6
Not used for writing log messages. Specifies that a logging category should not write any messages.
錯誤訊息如下 EventSource Microsoft-Extensions-Logging: Object reference not set to an instance of an object 暫時不打算深追查, ETW 可以記錄的 Memory 、Disc IO 、CPU 等資訊, 其實與我想要的應用程式記錄有所差異,稍稍記錄一下以後也許用得到。 如果有人能留言給我一些方向,也是非常歡迎。
publicclassFizzBuzz { publicstringGetResult(int number) { string result = string.Empty; var fizzRule = new FizzRule(); if (fizzRule.Check(number)) { result += "Fizz"; }
publicclassFizzBuzz { private List<IRule> _rules = new List<IRule> {new FizzRule(), new BuzzRule()};
publicstringGetResult(int number) { string result = string.Empty; var fizzRule = new FizzRule(); if (fizzRule.Check(number)) { result += fizzRule.Word; }
var buzzRule = new BuzzRule(); if (buzzRule.Check(number)) { result += buzzRule.Word; }