{"action":"created","issue":{"url":"https://api.github.com/repos/wendux/DSBridge-IOS/issues/61","repository_url":"https://api.github.com/repos/wendux/DSBridge-IOS","labels_url":"https://api.github.com/repos/wendux/DSBridge-IOS/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/wendux/DSBridge-IOS/issues/61/comments","events_url":"https://api.github.com/repos/wendux/DSBridge-IOS/issues/61/events","html_url":"https://github.com/wendux/DSBridge-IOS/issues/61","id":357652902,"node_id":"MDU6SXNzdWUzNTc2NTI5MDI=","number":61,"title":"更新到3.0.3后，swift调不到api的方法了，怎么回事？","user":{"login":"ashen-zhao","id":11596525,"node_id":"MDQ6VXNlcjExNTk2NTI1","avatar_url":"https://avatars3.githubusercontent.com/u/11596525?v=4","gravatar_id":"","url":"https://api.github.com/users/ashen-zhao","html_url":"https://github.com/ashen-zhao","followers_url":"https://api.github.com/users/ashen-zhao/followers","following_url":"https://api.github.com/users/ashen-zhao/following{/other_user}","gists_url":"https://api.github.com/users/ashen-zhao/gists{/gist_id}","starred_url":"https://api.github.com/users/ashen-zhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashen-zhao/subscriptions","organizations_url":"https://api.github.com/users/ashen-zhao/orgs","repos_url":"https://api.github.com/users/ashen-zhao/repos","events_url":"https://api.github.com/users/ashen-zhao/events{/privacy}","received_events_url":"https://api.github.com/users/ashen-zhao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-06T13:22:53Z","updated_at":"2018-09-06T15:43:17Z","closed_at":null,"author_association":"NONE","body":"看了下好像是 WKUserScript *script = [[WKUserScript alloc] initWithSource:@\"_dswk='_dsbridge=';\"\r\n                                                  injectionTime:WKUserScriptInjectionTimeAtDocumentStart\r\n                                               forMainFrameOnly:YES];\r\n这里的\"_dswk='_dsbridge=';  改变了，不知道这是什么意思"},"comment":{"url":"https://api.github.com/repos/wendux/DSBridge-IOS/issues/comments/419142958","html_url":"https://github.com/wendux/DSBridge-IOS/issues/61#issuecomment-419142958","issue_url":"https://api.github.com/repos/wendux/DSBridge-IOS/issues/61","id":419142958,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTE0Mjk1OA==","user":{"login":"ashen-zhao","id":11596525,"node_id":"MDQ6VXNlcjExNTk2NTI1","avatar_url":"https://avatars3.githubusercontent.com/u/11596525?v=4","gravatar_id":"","url":"https://api.github.com/users/ashen-zhao","html_url":"https://github.com/ashen-zhao","followers_url":"https://api.github.com/users/ashen-zhao/followers","following_url":"https://api.github.com/users/ashen-zhao/following{/other_user}","gists_url":"https://api.github.com/users/ashen-zhao/gists{/gist_id}","starred_url":"https://api.github.com/users/ashen-zhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashen-zhao/subscriptions","organizations_url":"https://api.github.com/users/ashen-zhao/orgs","repos_url":"https://api.github.com/users/ashen-zhao/repos","events_url":"https://api.github.com/users/ashen-zhao/events{/privacy}","received_events_url":"https://api.github.com/users/ashen-zhao/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T15:43:17Z","updated_at":"2018-09-06T15:43:17Z","author_association":"NONE","body":"@wendux 经过调试，我发现swift的方法中，外部参数名要用‘ _ ’来忽略掉，才可以调通，否则methodByNameArg这个方法中，会将参数名追加到方法名后面，导致方法名字不匹配，找不到方法；\r\n比如这样：\r\n    @objc func testSyn(_ arg:String) -> String {\r\n        return String(format:\"%@[sync call:%@]\", arg, \"test\")\r\n    }\r\n"}}
{"actor":{"display_login":"ashen-zhao"}}