{"id":3767,"date":"2023-12-27T21:46:18","date_gmt":"2023-12-27T13:46:18","guid":{"rendered":"http:\/\/www.ponybai.com\/?p=3767"},"modified":"2023-11-27T21:52:20","modified_gmt":"2023-11-27T13:52:20","slug":"%e4%bf%9d%e6%8a%a4%e6%82%a8%e7%9a%84%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"http:\/\/www.ponybai.com\/?p=3767","title":{"rendered":"\u4fdd\u62a4\u60a8\u7684\u6570\u636e"},"content":{"rendered":"\n<p>\u53ef\u4ee5\u4f7f\u7528\u7c7b\u63d0\u4f9b\u7684\u65b9\u6cd5\u4fdd\u62a4\u6570\u636e\u3002<\/p>\n\n\n\n<p><samp>Crypto<\/samp><\/p>\n\n\n\n<p>\u7c7b\u4e2d\u7684\u65b9\u6cd5\u63d0\u4f9b\u6807\u51c6 \u7528\u4e8e\u521b\u5efa\u6458\u8981\u3001\u6d88\u606f\u8eab\u4efd\u9a8c\u8bc1\u4ee3\u7801\u548c\u7b7e\u540d\u7684\u7b97\u6cd5 \u4f5c\u4e3a\u52a0\u5bc6\u548c\u89e3\u5bc6\u4fe1\u606f\u3002\u8fd9\u4e9b\u53ef\u7528\u4e8e\u4fdd\u62a4 Salesforce\uff0c\u6216\u4e0e Google \u6216 Amazon \u7b49\u5916\u90e8\u670d\u52a1\u96c6\u6210 \u7f51\u7edc\u670d\u52a1 \uff08AWS\uff09\u3002<samp>Crypto<\/samp><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u96c6\u6210 Amazon WebServices<\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u793a\u4f8b\u6f14\u793a\u4e86 Amazon WebServices \u4e0e \u9500\u552e\u4eba\u5458\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class HMacAuthCallout {\n\n   public void testAlexaWSForAmazon() {\n \n   \/\/ The date format is yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\n      DateTime d = System.now();\n      String timestamp = ''+ d.year() + '-' +\n      d.month() + '-' +\n      d.day() + '\\'T\\'' +\n      d.hour() + ':' +\n      d.minute() + ':' +\n      d.second() + '.' +\n      d.millisecond() + '\\'Z\\'';\n      String timeFormat = d.formatGmt(timestamp);\n\n      String urlEncodedTimestamp = EncodingUtil.urlEncode(timestamp, 'UTF-8');\n      String action = 'UrlInfo';\n      String inputStr = action + timeFormat;\n      String algorithmName = 'HMacSHA1';\n      Blob mac = Crypto.generateMac(algorithmName,  Blob.valueOf(inputStr), \n                                                    Blob.valueOf('your_signing_key'));\n      String macUrl = EncodingUtil.urlEncode(EncodingUtil.base64Encode(mac), 'UTF-8');\n \n      String urlToTest = 'amazon.com';\n      String version = '2005-07-11'; \n      String endpoint = 'http:\/\/awis.amazonaws.com\/';\n      String accessKey = 'your_key';\n \n      HttpRequest req = new HttpRequest();\n      req.setEndpoint(endpoint +\n                      '?AWSAccessKeyId=' + accessKey +\n                      '&amp;Action=' + action +\n                      '&amp;ResponseGroup=Rank&amp;Version=' + version +\n                      '&amp;Timestamp=' + urlEncodedTimestamp +\n                      '&amp;Url=' + urlToTest +\n                      '&amp;Signature=' + macUrl);\n \n      req.setMethod('GET');\n      Http http = new Http();\n      try {\n         HttpResponse res = http.send(req);\n         System.debug('STATUS:'+res.getStatus());\n         System.debug('STATUS_CODE:'+res.getStatusCode());\n         System.debug('BODY: '+res.getBody());\n      } catch(System.CalloutException e) {\n         System.debug('ERROR: '+ e);\n      }\n   }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a>\u793a\u4f8b\uff1a\u52a0\u5bc6\u548c \u89e3\u5bc6<\/h2>\n\n\n\n<p>\u4e0b\u9762\u7684\u793a\u4f8b\u4f7f\u7528 \u548c \u65b9\u6cd5\u4ee5\u53ca\u7c7b\u7684\u65b9\u6cd5\u3002<samp>encryptWithManagedIV<\/samp><samp>decryptWithManagedIV<\/samp><samp>generateAesKey<\/samp><samp>Crypto<\/samp><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Use generateAesKey to generate the private key\nBlob cryptoKey = Crypto.generateAesKey(256);\n\n\/\/ Generate the data to be encrypted.\nBlob data = Blob.valueOf('Test data to encrypted');\n\n\/\/ Encrypt the data and have Salesforce generate the initialization vector \nBlob encryptedData = Crypto.encryptWithManagedIV('AES256', cryptoKey, data);\n\n\/\/ Decrypt the data\nBlob decryptedData = Crypto.decryptWithManagedIV('AES256', cryptoKey, encryptedData);<\/code><\/pre>\n\n\n\n<p>\u4e0b\u9762\u662f\u4e3a \u548c Crypto \u65b9\u6cd5\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\u7684\u793a\u4f8b\u3002<\/p>\n\n\n\n<p><samp>encryptWithManagedIV<\/samp><samp>decryptWithManagedIV<\/samp><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@isTest\nprivate class CryptoTest {\n    static testMethod void testValidDecryption() {\n\n        \/\/ Use generateAesKey to generate the private key\n        Blob key = Crypto.generateAesKey(128);\n        \/\/ Generate the data to be encrypted.\n        Blob data = Blob.valueOf('Test data');\n        \/\/ Generate an encrypted form of the data using base64 encoding\n        String b64Data = EncodingUtil.base64Encode(data);\n        \/\/ Encrypt and decrypt the data\n        Blob encryptedData = Crypto.encryptWithManagedIV('AES128', key, data);\n        Blob decryptedData = Crypto.decryptWithManagedIV('AES128', key, encryptedData);\n        String b64Decrypted = EncodingUtil.base64Encode(decryptedData);\n        \/\/ Verify that the strings still match\n        System.assertEquals(b64Data, b64Decrypted);\n    }\n    static testMethod void testInvalidDecryption() {\n        \/\/ Verify that you must use the same key size for encrypting data\n        \/\/ Generate two private keys, using different key sizes\n        Blob keyOne = Crypto.generateAesKey(128);\n        Blob keyTwo = Crypto.generateAesKey(256);\n        \/\/ Generate the data to be encrypted.\n        Blob data = Blob.valueOf('Test data');\n        \/\/ Encrypt the data using the first key \n        Blob encryptedData = Crypto.encryptWithManagedIV('AES128', keyOne, data);\n        try {\n         \/\/ Try decrypting the data using the second key   \n            Crypto.decryptWithManagedIV('AES256', keyTwo, encryptedData);\n            System.assert(false);\n        } catch(SecurityException e) {\n            System.assertEquals('Given final block not properly padded', e.getMessage());\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">\u5bf9\u6570\u636e\u8fdb\u884c\u7f16\u7801<\/h1>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u5bf9 URL \u8fdb\u884c\u7f16\u7801\u548c\u89e3\u7801\uff0c\u5e76\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236 \u4f7f\u7528\u7c7b\u63d0\u4f9b\u7684\u65b9\u6cd5\u8bbe\u7f6e\u683c\u5f0f\u3002<\/p>\n\n\n\n<p><samp>EncodingUtil<\/samp><\/p>\n\n\n\n<p>\u6b64\u793a\u4f8b\u6f14\u793a\u5982\u4f55\u5bf9 UTF-8 \u4e2d\u7684\u65f6\u95f4\u6233\u503c\u8fdb\u884c URL \u7f16\u7801 \u901a\u8fc7\u8c03\u7528 .<samp>urlEncode<\/samp><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DateTime d = System.now();\nString timestamp = ''+ d.year() + '-' +\n    d.month() + '-' +\n    d.day() + '\\'T\\'' +\n    d.hour() + ':' +\n    d.minute() + ':' +\n    d.second() + '.' +\n    d.millisecond() + '\\'Z\\'';\nSystem.debug(timestamp);\nString urlEncodedTimestamp = EncodingUtil.urlEncode(timestamp, 'UTF-8');\nSystem.debug(urlEncodedTimestamp);<\/code><\/pre>\n\n\n\n<p>\u4e0b\u4e00\u4e2a\u793a\u4f8b\u6f14\u793a\u5982\u4f55\u4f7f\u7528 HTTP \u6458\u8981\u8ba1\u7b97\u5ba2\u6237\u7aef\u54cd\u5e94 \u8eab\u4efd\u9a8c\u8bc1 \uff08RFC2617\uff09\u3002<samp>convertToHex<\/samp><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@isTest\nprivate class SampleTest {\n   static testmethod void testConvertToHex() {\n      String myData = 'A Test String';\n      Blob hash = Crypto.generateDigest('SHA1',Blob.valueOf(myData));\n      String hexDigest = EncodingUtil.convertToHex(hash);\n      System.debug(hexDigest);  \n    } \n}<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">\u4f7f\u7528\u6a21\u5f0f\u548c\u5339\u914d\u5668<\/h1>\n\n\n\n<p>Apex \u63d0\u4f9b\u6a21\u5f0f\u548c\u5339\u914d\u5668\uff0c\u4f7f\u60a8\u80fd\u591f\u4f7f\u7528 \u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/p>\n\n\n\n<p>\u6a21\u5f0f\u662f\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u7f16\u8bd1\u8868\u793a\u5f62\u5f0f\u3002 \u5339\u914d\u5668\u4f7f\u7528\u6a21\u5f0f\u5bf9\u5b57\u7b26\u6267\u884c\u5339\u914d\u64cd\u4f5c \u5b57\u7b26\u4e32\u3002<\/p>\n\n\n\n<p><dfn>\u6b63\u5219\u8868\u8fbe\u5f0f<\/dfn>\u662f\u7528\u4e8e\u5339\u914d\u7684\u5b57\u7b26\u4e32 \u53e6\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u4f7f\u7528\u7279\u5b9a\u8bed\u6cd5\u3002Apex \u652f\u6301\u901a\u8fc7\u5176&nbsp;<dfn>Pattern<\/dfn>&nbsp;\u548c&nbsp;<dfn>Matcher<\/dfn>&nbsp;\u7c7b\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>\u5728 Apex \u4e2d\uff0cPatterns \u548c Matchers \u4ee5\u53ca\u6b63\u5219\u8868\u8fbe\u5f0f\u90fd\u662f\u57fa\u4e8e \u5728 Java \u4e2d\u7684\u5bf9\u5e94\u7269\u4e0a\u3002\u8bf7\u53c2\u89c1\u00a0http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/index.html?java\/util\/regex\/Pattern.html\u3002<\/p>\n\n\n\n<p>\u8bb8\u591a Matcher \u5bf9\u8c61\u53ef\u4ee5\u5171\u4eab\u540c\u4e00\u4e2a Pattern \u5bf9\u8c61\uff0c\u5982\u4e0b\u6240\u793a \u5728\u4e0b\u56fe\u4e2d\uff1a<\/p>\n\n\n\n<p>\u53ef\u4ee5\u4ece\u540c\u4e00\u4e2a Pattern \u5bf9\u8c61\u521b\u5efa\u8bb8\u591a Matcher \u5bf9\u8c61<img decoding=\"async\" src=\"https:\/\/developer.salesforce.com\/docs\/resources\/img\/en-us\/246.0?doc_id=dev_guides%2Fapex%2Fimages%2FPatternAndMatcher.gif&amp;folder=apexcode\" alt=\"A flow chart showing flow from Regular Expression to Matcher object\"><\/p>\n\n\n\n<p>Apex \u4e2d\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u9075\u5faa Java \u4e2d\u4f7f\u7528\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u6807\u51c6\u8bed\u6cd5\u3002 \u4efb\u4f55\u57fa\u4e8e Java \u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u5b57\u7b26\u4e32\u90fd\u53ef\u4ee5\u8f7b\u677e\u5bfc\u5165\u5230 \u60a8\u7684 Apex \u4ee3\u7801\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>Salesforce \u9650\u5236\u5e38\u89c4\u8f93\u5165\u5e8f\u5217\u7684\u6b21\u6570 \u8868\u8fbe\u5f0f\u53ef\u4ee5\u8bbf\u95ee 1,000,000 \u6b21\u3002\u5982\u679c\u8fbe\u5230\u8be5\u9650\u5236\uff0c \u6536\u5230\u8fd0\u884c\u65f6\u9519\u8bef\u3002<\/p>\n\n\n\n<p>\u6240\u6709\u6b63\u5219\u8868\u8fbe\u5f0f\u90fd\u6307\u5b9a\u4e3a\u5b57\u7b26\u4e32\u3002\u6700\u5e38\u89c4 \u8868\u8fbe\u5f0f\u9996\u5148\u7f16\u8bd1\u5230 Pattern \u5bf9\u8c61\u4e2d\uff1a\u53ea\u6709 String \u65b9\u6cd5\u91c7\u7528\u6b63\u5219\u8868\u8fbe\u5f0f \u8fd9\u6ca1\u6709\u88ab\u7f16\u8bd1\u3002<samp>split<\/samp>\u901a\u5e38\uff0c\u5728\u5c06\u6b63\u5219\u8868\u8fbe\u5f0f\u7f16\u8bd1\u4e3a Pattern \u4e4b\u540e \u5bf9\u8c61\uff0c\u5219\u53ea\u9700\u4f7f\u7528 Pattern \u5bf9\u8c61\u4e00\u6b21\u5373\u53ef\u521b\u5efa Matcher \u5bf9\u8c61\u3002 \u7136\u540e\uff0c\u4f7f\u7528 Matcher \u5bf9\u8c61\u6267\u884c\u6240\u6709\u8fdb\u4e00\u6b65\u7684\u64cd\u4f5c\u3002\u4e3a \u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ First, instantiate a new Pattern object \"MyPattern\"\nPattern MyPattern = Pattern.compile('a*b');\n\n\/\/ Then instantiate a new Matcher object \"MyMatcher\"\nMatcher MyMatcher = MyPattern.matcher('aaaaab');\n\n\/\/ You can use the system static method assert to verify the match\nSystem.assert(MyMatcher.matches());<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u53ea\u6253\u7b97\u4f7f\u7528\u4e00\u6b21\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u8bf7\u4f7f\u7528 class \u65b9\u6cd5\u7f16\u8bd1\u8868\u8fbe\u5f0f \u5e76\u5728\u5355\u4e2a\u8c03\u7528\u4e2d\u5c06\u5b57\u7b26\u4e32\u4e0e\u5176\u5339\u914d\u3002\u4f8b\u5982 \u4ee5\u4e0b\u5185\u5bb9\u7b49\u6548\u4e8e\u4e0a\u9762\u7684\u4ee3\u7801\uff1a<samp>Pattern<\/samp><samp>matches<\/samp><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Boolean Test = Pattern.matches('a*b', 'aaaaab');<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4f7f\u7528\u533a\u57df<\/strong><\/li>\n\n\n\n<li><strong>\u4f7f\u7528\u5339\u914d\u64cd\u4f5c<\/strong><\/li>\n\n\n\n<li><strong>\u4f7f\u7528\u8fb9\u754c<\/strong><\/li>\n\n\n\n<li><strong>\u4e86\u89e3\u6355\u83b7\u7ec4<\/strong><\/li>\n\n\n\n<li><strong>\u6a21\u5f0f\u548c\u5339\u914d\u5668\u793a\u4f8b<\/strong><\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">\u4f7f\u7528\u533a\u57df<\/h1>\n\n\n\n<p>Matcher \u5bf9\u8c61\u5728\u5176\u8f93\u5165\u5b57\u7b26\u4e32\u7684\u5b50\u96c6\u4e2d\u67e5\u627e\u5339\u914d\u9879 \u79f0\u4e3a<dfn>\u533a\u57df<\/dfn>\u3002Matcher \u5bf9\u8c61\u7684\u9ed8\u8ba4\u533a\u57df \u59cb\u7ec8\u662f\u8f93\u5165\u5b57\u7b26\u4e32\u7684\u6574\u4e2a\u90e8\u5206\u3002\u4f46\u662f\uff0c\u60a8\u53ef\u4ee5\u66f4\u6539 \u4f7f\u7528\u8be5\u65b9\u6cd5\u83b7\u53d6\u67d0\u4e2a\u533a\u57df\u7684\u8d77\u70b9\u548c\u7ec8\u70b9\uff0c\u60a8\u53ef\u4ee5\u67e5\u8be2 \u4f7f\u7528 \u548c \u65b9\u6cd5\u7684\u533a\u57df\u7ec8\u7ed3\u70b9\u3002<samp>region<\/samp><samp>regionStart<\/samp><samp>regionEnd<\/samp><\/p>\n\n\n\n<p>\u8be5\u65b9\u6cd5\u9700\u8981 \u8d77\u59cb\u503c\u548c\u7ed3\u675f\u503c\u3002\u4e0b\u8868\u63d0\u4f9b\u4e86\u793a\u4f8b \u5982\u4f55\u5728\u4e0d\u8bbe\u7f6e\u53e6\u4e00\u4e2a\u503c\u7684\u60c5\u51b5\u4e0b\u8bbe\u7f6e\u53e6\u4e00\u4e2a\u503c\u3002<samp>region<\/samp><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u533a\u57df\u5f00\u59cb<\/th><th>\u533a\u57df\u7ed3\u675f<\/th><th>\u4ee3\u7801\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td>\u663e\u5f0f\u6307\u5b9a<\/td><td>\u4fdd\u6301\u4e0d\u53d8<\/td><td><code>MyMatcher.region(start, MyMatcher.regionEnd());<\/code><\/td><\/tr><tr><td>\u4fdd\u6301\u4e0d\u53d8<\/td><td>\u663e\u5f0f\u6307\u5b9a<\/td><td><code>MyMatcher.region(MyMatcher.regionStart(), end);<\/code><\/td><\/tr><tr><td>\u91cd\u7f6e\u4e3a\u9ed8\u8ba4\u503c<\/td><td>\u663e\u5f0f\u6307\u5b9a<\/td><td><code>MyMatcher.region(0, end);<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">\u4f7f\u7528\u5339\u914d\u64cd\u4f5c<\/h1>\n\n\n\n<p><dfn>Matcher \u5bf9\u8c61<\/dfn>\u5bf9\u89d2\u8272\u6267\u884c\u5339\u914d\u64cd\u4f5c \u5e8f\u5217\uff0c\u901a\u8fc7\u89e3\u91ca Pattern\u3002<\/p>\n\n\n\n<p>Matcher \u5bf9\u8c61\u662f\u901a\u8fc7 Pattern \u7684\u65b9\u6cd5\u4ece Pattern \u5b9e\u4f8b\u5316\u7684\u3002\u521b\u5efa\u540e\uff0c\u5339\u914d\u5668 \u5bf9\u8c61\u53ef\u7528\u4e8e\u6267\u884c\u4ee5\u4e0b\u7c7b\u578b\u7684\u5339\u914d\u64cd\u4f5c\uff1a<samp>matcher<\/samp><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c06 Matcher \u5bf9\u8c61\u7684\u6574\u4e2a\u8f93\u5165\u5b57\u7b26\u4e32\u4e0e\u6a21\u5f0f\u8fdb\u884c\u5339\u914d \u4f7f\u7528\u65b9\u6cd5<samp>matches<\/samp><\/li>\n\n\n\n<li>\u5c06 Matcher \u5bf9\u8c61\u7684\u8f93\u5165\u5b57\u7b26\u4e32\u4e0e\u6a21\u5f0f\u5339\u914d\uff0c\u4ece \u5728\u5f00\u59cb\u65f6\uff0c\u4f46\u4e0d\u5339\u914d\u6574\u4e2a\u533a\u57df\uff0c\u4f7f\u7528\u8be5\u65b9\u6cd5<samp>lookingAt<\/samp><\/li>\n\n\n\n<li>\u626b\u63cf Matcher \u5bf9\u8c61\u7684\u8f93\u5165\u5b57\u7b26\u4e32\u4ee5\u67e5\u627e\u4e0b\u4e00\u4e2a\u5b50\u5b57\u7b26\u4e32 \u4e0e\u4f7f\u7528\u65b9\u6cd5\u7684\u6a21\u5f0f\u5339\u914d<samp>find<\/samp><\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\u7684\u6bcf\u4e00\u4e2a\u90fd\u8fd4\u56de\u4e00\u4e2a\u6307\u793a\u6210\u529f\u6216\u5931\u8d25\u7684\u5e03\u5c14\u503c\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\u7684\u4efb\u4f55\u4e00\u79cd\u540e\uff0c\u60a8\u53ef\u4ee5\u627e\u5230\u66f4\u591a\u4fe1\u606f \u5173\u4e8e\u4e0a\u4e00\u4e2a\u5339\u914d\u9879\uff0c\u5373\u627e\u5230\u7684\u5185\u5bb9\uff0c\u901a\u8fc7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4 Matcher \u7c7b\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><samp>end<\/samp>\uff1a\u4e00\u65e6\u5339\u914d made\uff0c\u6b64\u65b9\u6cd5\u8fd4\u56de\u5339\u914d\u5b57\u7b26\u4e32\u4e2d \u5339\u914d\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u3002<\/li>\n\n\n\n<li><samp>start<\/samp>\uff1a\u4e00\u65e6\u5339\u914d made\uff0c\u6b64\u65b9\u6cd5\u8fd4\u56de\u7b2c\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u7684\u4f4d\u7f6e \u5339\u914d\u7684\u5b57\u7b26\u3002<\/li>\n\n\n\n<li><samp>group<\/samp>\uff1a\u4e00\u65e6\u5339\u914d made\uff0c\u6b64\u65b9\u6cd5\u8fd4\u56de\u5339\u914d\u7684\u5b50\u5e8f\u5217\u3002<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">\u4f7f\u7528\u8fb9\u754c<\/h1>\n\n\n\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u533a\u57df\u7531\u5b9a\u4f4d\u8fb9\u754c\u5206\u9694\uff0c\u8fd9\u610f\u5473\u7740\u7ebf\u951a\u70b9\uff08\u4f8b\u5982 \u6216 \uff09\u5728\u533a\u57df\u8fb9\u754c\u5904\u5339\u914d\uff0c\u5373\u4f7f\u533a\u57df<dfn>\u8fb9\u754c<\/dfn>\u4e5f\u662f\u5982\u6b64 \u5df2\u4ece\u8f93\u5165\u5b57\u7b26\u4e32\u7684\u5f00\u5934\u548c\u7ed3\u5c3e\u79fb\u5f00\u3002\u60a8\u53ef\u4ee5 \u6307\u5b9a\u533a\u57df\u662f\u5426\u5bf9\u65b9\u6cd5\u4f7f\u7528\u5b9a\u4f4d\u8fb9\u754c\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c \u533a\u57df\u59cb\u7ec8\u4f7f\u7528\u5b9a\u4f4d\u8fb9\u754c\u3002\u5982\u679c\u8bbe\u7f6e\u4e3a \uff0c\u5219\u7ebf\u951a\u70b9\u4ec5\u5339\u914d \u8f93\u5165\u5b57\u7b26\u4e32\u7684\u771f\u6b63\u672b\u5c3e\u3002<samp>^<\/samp><samp>$<\/samp><samp>useAnchoringBounds<\/samp><samp>useAnchoringBounds<\/samp><samp>false<\/samp><\/p>\n\n\n\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4e0d\u4f1a\u641c\u7d22\u4f4d\u4e8e\u533a\u57df\u4e4b\u5916\u7684\u6240\u6709\u6587\u672c\uff0c \u4e5f\u5c31\u662f\u8bf4\uff0c\u8be5\u533a\u57df\u5177\u6709<dfn>\u4e0d\u900f\u660e\u7684\u8fb9\u754c<\/dfn>\u3002\u4f46\u662f\uff0c\u4f7f\u7528<dfn>\u900f\u660e\u8fb9\u754c<\/dfn>\u53ef\u4ee5\u641c\u7d22\u5916\u90e8\u7684\u6587\u672c \u4e00\u4e2a\u533a\u57df\u3002\u4ec5\u5f53\u533a\u57df\u4e0d\u518d\u4f7f\u7528\u900f\u660e\u8fb9\u754c\u65f6 \u5305\u542b\u6574\u4e2a\u8f93\u5165\u5b57\u7b26\u4e32\u3002\u60a8\u53ef\u4ee5\u6307\u5b9a\u8fb9\u754c\u7684\u7c7b\u578b \u533a\u57df\u5177\u6709\u4f7f\u7528\u8be5\u65b9\u6cd5\u3002<samp>useTransparentBounds<\/samp><\/p>\n\n\n\n<p>\u5047\u8bbe\u60a8\u6b63\u5728\u641c\u7d22\u4ee5\u4e0b\u5b57\u7b26\u4e32\uff0c\u4ee5\u53ca\u60a8\u6240\u5728\u7684\u5730\u533a \u53ea\u662f\u201cSTRING\u201d\u8fd9\u4e2a\u8bcd\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>This is a concatenated STRING of cats and dogs.<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u4f60\u641c\u7d22\u201c\u732b\u201d\u8fd9\u4e2a\u8bcd\uff0c\u4f60\u4e0d\u4f1a \u63a5\u6536\u5339\u914d\u9879\uff0c\u9664\u975e\u60a8\u8bbe\u7f6e\u4e86\u900f\u660e\u8fb9\u754c\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e86\u89e3\u6355\u83b7\u7ec4<\/h1>\n\n\n\n<p>\u5728\u5339\u914d\u64cd\u4f5c\u671f\u95f4\uff0c\u8f93\u5165\u5b57\u7b26\u4e32\u7684\u6bcf\u4e2a\u5b50\u5b57\u7b26\u4e32 \u4e0e\u6a21\u5f0f\u5339\u914d\u7684\u5c06\u88ab\u4fdd\u5b58\u3002\u8fd9\u4e9b\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32\u79f0\u4e3a<dfn>\u6355\u83b7\u7ec4<\/dfn>\u3002<\/p>\n\n\n\n<p>\u6355\u83b7\u7ec4\u901a\u8fc7\u8ba1\u7b97\u5176\u5de6\u62ec\u53f7\u8fdb\u884c\u7f16\u53f7 \u4ece\u5de6\u5230\u53f3\u3002\u4f8b\u5982\uff0c\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u5b57\u7b26\u4e32\u4e2d\uff0c\u6709\u56db\u4e2a\u6355\u83b7 \u7ec4\uff1a<samp>((A)(B(C)))<\/samp><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><samp>((A)(B(C)))<\/samp><\/li>\n\n\n\n<li><samp>(A)<\/samp><\/li>\n\n\n\n<li><samp>(B(C))<\/samp><\/li>\n\n\n\n<li><samp>(C)<\/samp><\/li>\n<\/ol>\n\n\n\n<p>\u7ec4 0 \u59cb\u7ec8\u4ee3\u8868\u6574\u4e2a\u8868\u8fbe\u5f0f\u3002<\/p>\n\n\n\n<p>\u4e0e\u7ec4\u5173\u8054\u7684\u6355\u83b7\u8f93\u5165\u59cb\u7ec8\u662f\u5b50\u5b57\u7b26\u4e32 \u6700\u8fd1\u5339\u914d\u7684\u7ec4\uff0c\u5373\u8fd4\u56de\u7684\u7ec4 Matcher \u7c7b\u5339\u914d\u64cd\u4f5c\u4e4b\u4e00\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4f7f\u7528\u5176\u4e2d\u4e00\u4e2a\u5339\u914d\u64cd\u4f5c\u7b2c\u4e8c\u6b21\u8bc4\u4f30\u7ec4\uff0c \u5982\u679c\u7b2c\u4e8c\u6b21\u8bc4\u4f30\uff0c\u5219\u4fdd\u7559\u5176\u5148\u524d\u6355\u83b7\u7684\u503c\uff08\u5982\u679c\u6709\uff09 \u5931\u8d25\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u6a21\u5f0f\u548c\u5339\u914d\u5668\u793a\u4f8b<\/h1>\n\n\n\n<p>Matcher \u7c7b\u65b9\u6cd5 \u8fd4\u56de\u5339\u914d\u5b57\u7b26\u4e32\u4e2d\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u4e4b\u540e\u7684\u4f4d\u7f6e \u90a3\u662f\u5339\u914d\u7684\u3002\u5728\u89e3\u6790\u5b57\u7b26\u4e32\u65f6\uff0c\u60a8\u5c06\u4f7f\u7528\u5b83 \u5e76\u5e0c\u671b\u5728\u627e\u5230\u5339\u914d\u9879\u540e\u5bf9\u5176\u8fdb\u884c\u5176\u4ed6\u5de5\u4f5c\uff0c \u6bd4\u5982\u627e\u5230\u4e0b\u4e00\u4e2a\u5339\u914d\u9879\u3002<samp>end<\/samp><\/p>\n\n\n\n<p>\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u8bed\u6cd5\u4e2d\uff0c\u8868\u793a\u5339\u914d\u4e00\u6b21\u6216\u6839\u672c\u4e0d\u5339\u914d\uff0c\u8868\u793a\u5339\u914d 1 \u6b21\u6216\u591a\u6b21\u3002<samp>?<\/samp><samp>+<\/samp><\/p>\n\n\n\n<p>\u5728\u4ee5\u4e0b\u793a\u4f8b\u4e2d\uff0c\u4f7f\u7528 Matcher \u4f20\u5165\u7684\u5b57\u7b26\u4e32 \u5bf9\u8c61\u4e0e\u6a21\u5f0f\u5339\u914d\uff0c\u56e0\u4e3a\u5339\u914d\u5b57\u7b26\u4e32 &#8211; \u540e\u8ddf\u4e00\u6b21\u3002\u7136\u540e\u5b83\u4e0e\u6700\u540e\u4e00\u4e2a\u5339\u914d &#8211; \u7136\u540e\u662f\u6839\u672c\u4e0d\u5339\u914d\u3002<samp>(a(b)?)<\/samp><samp>&#8216;ab&#8217;<\/samp><samp>&#8216;a&#8217;<\/samp><samp>&#8216;b&#8217;<\/samp><samp>&#8216;a&#8217;<\/samp><samp>&#8216;a&#8217;<\/samp><samp>&#8216;b&#8217;<\/samp><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pattern myPattern = pattern.compile('(a(b)?)+'); \nmatcher myMatcher = myPattern.matcher('aba');\nSystem.assert(myMatcher.matches() &amp;&amp; myMatcher.hitEnd());\n\n\/\/ We have two groups: group 0 is always the whole pattern, and group 1 contains \n\/\/ the substring that most recently matched--in this case, 'a'. \n\/\/ So the following is true:\n\nSystem.assert(myMatcher.groupCount() == 2 &amp;&amp;\n              myMatcher.group(0) == 'aba' &amp;&amp; \n              myMatcher.group(1) == 'a');\n \n\/\/ Since group 0 refers to the whole pattern, the following is true:\n\nSystem.assert(myMatcher.end() == myMatcher.end(0));\n\n\/\/ Since the offset after the last character matched is returned by end, \n\/\/ and since both groups used the last input letter, that offset is 3\n\/\/ Remember the offset starts its count at 0. So the following is also true:\n\nSystem.assert(myMatcher.end() == 3 &amp;&amp; \n              myMatcher.end(0) == 3 &amp;&amp; \n              myMatcher.end(1) == 3);<\/code><\/pre>\n\n\n\n<p>\u5728\u4ee5\u4e0b\u793a\u4f8b\u4e2d\uff0c\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u88ab\u89c4\u8303\u5316\u5e76\u91cd\u590d \u5982\u679c\u5b58\u5728\u4e0d\u540c\u7684\u9876\u7ea7\u57df\u540d\u6216\u5b50\u57df\u540d\uff0c\u5219\u4f1a\u62a5\u544a \u5bf9\u4e8e\u76f8\u4f3c\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002\u4f8b\u5982\uff0c\u89c4\u8303\u5316\u4e3a \u3002<samp>john@fairway.smithco<\/samp><samp>john@smithco<\/samp><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class normalizeEmailAddresses{\n\n    public void hasDuplicatesByDomain(Lead&#91;] leads) {\n           \/\/ This pattern reduces the email address to 'john@smithco' \n           \/\/ from 'john@*.smithco.com' or 'john@smithco.*'\n        Pattern emailPattern = Pattern.compile('(?&lt;=@)((?!&#91;\\\\w]+\\\\.&#91;\\\\w]+$)\n                                               &#91;\\\\w]+\\\\.)|(\\\\.&#91;\\\\w]+$)');\n           \/\/ Define a set for emailkey to lead:\n        Map&lt;String,Lead&gt; leadMap = new Map&lt;String,Lead&gt;();\n                for(Lead lead:leads) {\n                    \/\/ Ignore leads with a null email\n                    if(lead.Email != null) {\n                           \/\/ Generate the key using the regular expression\n                       String emailKey = emailPattern.matcher(lead.Email).replaceAll('');\n                           \/\/ Look for duplicates in the batch\n                       if(leadMap.containsKey(emailKey)) \n                            lead.email.addError('Duplicate found in batch');\n                       else {\n                           \/\/ Keep the key in the duplicate key custom field\n                            lead.Duplicate_Key__c = emailKey;\n                            leadMap.put(emailKey, lead);\n                       }\n                 }\n             }\n                \/\/ Now search the database looking for duplicates \n                for(Lead&#91;] leadsCheck:&#91;SELECT Id, duplicate_key__c FROM Lead WHERE \n                duplicate_key__c IN :leadMap.keySet()]) {\n               for(Lead lead:leadsCheck) {\n               \/\/ If there's a duplicate, add the error.\n                   if(leadMap.containsKey(lead.Duplicate_Key__c)) \n                      leadMap.get(lead.Duplicate_Key__c).email.addError('Duplicate found \n                         in salesforce(Id: ' + lead.Id + ')');\n            }\n        }\n    }\n }<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7c7b\u4e2d\u7684\u65b9\u6cd5\u63d0\u4f9b\u6807\u51c6 \u7528\u4e8e\u521b\u5efa\u6458\u8981\u3001\u6d88\u606f\u8eab\u4efd\u9a8c\u8bc1\u4ee3\u7801\u548c\u7b7e\u540d\u7684\u7b97\u6cd5 \u4f5c\u4e3a\u52a0\u5bc6\u548c\u89e3\u5bc6\u4fe1\u606f\u3002\u8fd9\u4e9b\u53ef\u7528\u4e8e\u4fdd\u62a4 Salesforce\uff0c\u6216\u4e0e Google \u6216 Amazon \u7b49\u5916\u90e8\u670d\u52a1\u96c6\u6210 \u7f51\u7edc\u670d\u52a1 \uff08AWS\uff09\u3002Crypto<\/p>\n","protected":false},"author":1,"featured_media":3768,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[199],"tags":[227],"class_list":["post-3767","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apex-","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4fdd\u62a4\u60a8\u7684\u6570\u636e - \u767d\u767d\u968f\u7b14<\/title>\n<meta name=\"description\" content=\"\u7c7b\u4e2d\u7684\u65b9\u6cd5\u63d0\u4f9b\u6807\u51c6 \u7528\u4e8e\u521b\u5efa\u6458\u8981\u3001\u6d88\u606f\u8eab\u4efd\u9a8c\u8bc1\u4ee3\u7801\u548c\u7b7e\u540d\u7684\u7b97\u6cd5 \u4f5c\u4e3a\u52a0\u5bc6\u548c\u89e3\u5bc6\u4fe1\u606f\u3002\u8fd9\u4e9b\u53ef\u7528\u4e8e\u4fdd\u62a4 Salesforce\uff0c\u6216\u4e0e Google \u6216 Amazon \u7b49\u5916\u90e8\u670d\u52a1\u96c6\u6210 \u7f51\u7edc\u670d\u52a1 \uff08AWS\uff09\u3002Crypto\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.ponybai.com\/?p=3767\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4fdd\u62a4\u60a8\u7684\u6570\u636e - \u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"og:description\" content=\"\u7c7b\u4e2d\u7684\u65b9\u6cd5\u63d0\u4f9b\u6807\u51c6 \u7528\u4e8e\u521b\u5efa\u6458\u8981\u3001\u6d88\u606f\u8eab\u4efd\u9a8c\u8bc1\u4ee3\u7801\u548c\u7b7e\u540d\u7684\u7b97\u6cd5 \u4f5c\u4e3a\u52a0\u5bc6\u548c\u89e3\u5bc6\u4fe1\u606f\u3002\u8fd9\u4e9b\u53ef\u7528\u4e8e\u4fdd\u62a4 Salesforce\uff0c\u6216\u4e0e Google \u6216 Amazon \u7b49\u5916\u90e8\u670d\u52a1\u96c6\u6210 \u7f51\u7edc\u670d\u52a1 \uff08AWS\uff09\u3002Crypto\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.ponybai.com\/?p=3767\" \/>\n<meta property=\"og:site_name\" content=\"\u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-27T13:46:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-27T13:52:20+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/11\/encoding.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1410\" \/>\n\t<meta property=\"og:image:height\" content=\"313\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"ponybai\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"ponybai\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3767#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3767\"},\"author\":{\"name\":\"ponybai\",\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"headline\":\"\u4fdd\u62a4\u60a8\u7684\u6570\u636e\",\"datePublished\":\"2023-12-27T13:46:18+00:00\",\"dateModified\":\"2023-11-27T13:52:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3767\"},\"wordCount\":130,\"publisher\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"keywords\":[\"\u4fdd\u62a4\u60a8\u7684\u6570\u636e\"],\"articleSection\":[\"Apex \u5f00\u53d1\u4eba\u5458\u6307\u5357\"],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3767\",\"url\":\"http:\/\/www.ponybai.com\/?p=3767\",\"name\":\"\u4fdd\u62a4\u60a8\u7684\u6570\u636e - \u767d\u767d\u968f\u7b14\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/#website\"},\"datePublished\":\"2023-12-27T13:46:18+00:00\",\"dateModified\":\"2023-11-27T13:52:20+00:00\",\"description\":\"\u7c7b\u4e2d\u7684\u65b9\u6cd5\u63d0\u4f9b\u6807\u51c6 \u7528\u4e8e\u521b\u5efa\u6458\u8981\u3001\u6d88\u606f\u8eab\u4efd\u9a8c\u8bc1\u4ee3\u7801\u548c\u7b7e\u540d\u7684\u7b97\u6cd5 \u4f5c\u4e3a\u52a0\u5bc6\u548c\u89e3\u5bc6\u4fe1\u606f\u3002\u8fd9\u4e9b\u53ef\u7528\u4e8e\u4fdd\u62a4 Salesforce\uff0c\u6216\u4e0e Google \u6216 Amazon \u7b49\u5916\u90e8\u670d\u52a1\u96c6\u6210 \u7f51\u7edc\u670d\u52a1 \uff08AWS\uff09\u3002Crypto\",\"breadcrumb\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3767#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.ponybai.com\/?p=3767\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3767#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.ponybai.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4fdd\u62a4\u60a8\u7684\u6570\u636e\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.ponybai.com\/#website\",\"url\":\"http:\/\/www.ponybai.com\/\",\"name\":\"\u767d\u767d\u968f\u7b14\",\"description\":\"Salesforce\u5b98\u65b9\u8bb2\u5e08\",\"publisher\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.ponybai.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\",\"name\":\"ponybai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg\",\"contentUrl\":\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg\",\"width\":248,\"height\":248,\"caption\":\"ponybai\"},\"logo\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/121.37.188.161\"],\"url\":\"http:\/\/www.ponybai.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4fdd\u62a4\u60a8\u7684\u6570\u636e - \u767d\u767d\u968f\u7b14","description":"\u7c7b\u4e2d\u7684\u65b9\u6cd5\u63d0\u4f9b\u6807\u51c6 \u7528\u4e8e\u521b\u5efa\u6458\u8981\u3001\u6d88\u606f\u8eab\u4efd\u9a8c\u8bc1\u4ee3\u7801\u548c\u7b7e\u540d\u7684\u7b97\u6cd5 \u4f5c\u4e3a\u52a0\u5bc6\u548c\u89e3\u5bc6\u4fe1\u606f\u3002\u8fd9\u4e9b\u53ef\u7528\u4e8e\u4fdd\u62a4 Salesforce\uff0c\u6216\u4e0e Google \u6216 Amazon \u7b49\u5916\u90e8\u670d\u52a1\u96c6\u6210 \u7f51\u7edc\u670d\u52a1 \uff08AWS\uff09\u3002Crypto","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.ponybai.com\/?p=3767","og_locale":"zh_CN","og_type":"article","og_title":"\u4fdd\u62a4\u60a8\u7684\u6570\u636e - \u767d\u767d\u968f\u7b14","og_description":"\u7c7b\u4e2d\u7684\u65b9\u6cd5\u63d0\u4f9b\u6807\u51c6 \u7528\u4e8e\u521b\u5efa\u6458\u8981\u3001\u6d88\u606f\u8eab\u4efd\u9a8c\u8bc1\u4ee3\u7801\u548c\u7b7e\u540d\u7684\u7b97\u6cd5 \u4f5c\u4e3a\u52a0\u5bc6\u548c\u89e3\u5bc6\u4fe1\u606f\u3002\u8fd9\u4e9b\u53ef\u7528\u4e8e\u4fdd\u62a4 Salesforce\uff0c\u6216\u4e0e Google \u6216 Amazon \u7b49\u5916\u90e8\u670d\u52a1\u96c6\u6210 \u7f51\u7edc\u670d\u52a1 \uff08AWS\uff09\u3002Crypto","og_url":"http:\/\/www.ponybai.com\/?p=3767","og_site_name":"\u767d\u767d\u968f\u7b14","article_published_time":"2023-12-27T13:46:18+00:00","article_modified_time":"2023-11-27T13:52:20+00:00","og_image":[{"width":1410,"height":313,"url":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/11\/encoding.png","type":"image\/png"}],"author":"ponybai","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"ponybai","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.ponybai.com\/?p=3767#article","isPartOf":{"@id":"http:\/\/www.ponybai.com\/?p=3767"},"author":{"name":"ponybai","@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"headline":"\u4fdd\u62a4\u60a8\u7684\u6570\u636e","datePublished":"2023-12-27T13:46:18+00:00","dateModified":"2023-11-27T13:52:20+00:00","mainEntityOfPage":{"@id":"http:\/\/www.ponybai.com\/?p=3767"},"wordCount":130,"publisher":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"keywords":["\u4fdd\u62a4\u60a8\u7684\u6570\u636e"],"articleSection":["Apex \u5f00\u53d1\u4eba\u5458\u6307\u5357"],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/www.ponybai.com\/?p=3767","url":"http:\/\/www.ponybai.com\/?p=3767","name":"\u4fdd\u62a4\u60a8\u7684\u6570\u636e - \u767d\u767d\u968f\u7b14","isPartOf":{"@id":"http:\/\/www.ponybai.com\/#website"},"datePublished":"2023-12-27T13:46:18+00:00","dateModified":"2023-11-27T13:52:20+00:00","description":"\u7c7b\u4e2d\u7684\u65b9\u6cd5\u63d0\u4f9b\u6807\u51c6 \u7528\u4e8e\u521b\u5efa\u6458\u8981\u3001\u6d88\u606f\u8eab\u4efd\u9a8c\u8bc1\u4ee3\u7801\u548c\u7b7e\u540d\u7684\u7b97\u6cd5 \u4f5c\u4e3a\u52a0\u5bc6\u548c\u89e3\u5bc6\u4fe1\u606f\u3002\u8fd9\u4e9b\u53ef\u7528\u4e8e\u4fdd\u62a4 Salesforce\uff0c\u6216\u4e0e Google \u6216 Amazon \u7b49\u5916\u90e8\u670d\u52a1\u96c6\u6210 \u7f51\u7edc\u670d\u52a1 \uff08AWS\uff09\u3002Crypto","breadcrumb":{"@id":"http:\/\/www.ponybai.com\/?p=3767#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.ponybai.com\/?p=3767"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.ponybai.com\/?p=3767#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.ponybai.com\/"},{"@type":"ListItem","position":2,"name":"\u4fdd\u62a4\u60a8\u7684\u6570\u636e"}]},{"@type":"WebSite","@id":"http:\/\/www.ponybai.com\/#website","url":"http:\/\/www.ponybai.com\/","name":"\u767d\u767d\u968f\u7b14","description":"Salesforce\u5b98\u65b9\u8bb2\u5e08","publisher":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.ponybai.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883","name":"ponybai","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/","url":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg","contentUrl":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg","width":248,"height":248,"caption":"ponybai"},"logo":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/121.37.188.161"],"url":"http:\/\/www.ponybai.com\/?author=1"}]}},"_links":{"self":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3767"}],"version-history":[{"count":1,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3767\/revisions"}],"predecessor-version":[{"id":3769,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3767\/revisions\/3769"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/media\/3768"}],"wp:attachment":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3767"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}