From 0709c07bec7a2ff50875212b9d1a24bd1ec565f0 Mon Sep 17 00:00:00 2001 From: TQCasey <494294315@qq.com> Date: Thu, 12 Mar 2026 18:46:23 +0800 Subject: [PATCH] 1.remove demo web --- App.tsx | 108 +------- libs/rnwalletman | 2 +- .../logsrv_2026-03-12_18-36-04_341.har | 247 ++++++++++++++++++ 3 files changed, 249 insertions(+), 108 deletions(-) create mode 100644 logs/phonepe_business/logsrv_2026-03-12_18-36-04_341.har diff --git a/App.tsx b/App.tsx index e2e837a..372ff0c 100644 --- a/App.tsx +++ b/App.tsx @@ -629,114 +629,8 @@ export default class App extends Component { return null; } - - renderWebDemo() { - const handleMessage = (event: any) => { - try { - const data = JSON.parse(event.nativeEvent.data); - if (data.type === 'iframe_message') { - console.log('[Demo] iframe message:', data.data); - } - } catch (e) { - console.error('[Demo] Parse error:', e); - } - }; - - const syncToIframe = (fieldId: string, value: string) => { - const js = ` - window.postMessage({ - type: 'set_field', - fieldId: '${fieldId}', - value: '${value.replace(/'/g, "\\'")}' - }, '*'); - `; - this.webViewRef?.injectJavaScript(js); - }; - - const clickLogin = () => { - const js = `window.postMessage({type: 'click_login'}, '*');`; - this.webViewRef?.injectJavaScript(js); - }; - - const injectedJS = ` - window.addEventListener('message', function(event) { - window.ReactNativeWebView.postMessage(JSON.stringify({ - type: 'iframe_message', - data: event.data - })); - }); - true; - `; - - return ( - - { this.webViewRef = ref; }} - source={{ uri: 'https://dashboard.paytm.com' }} - javaScriptEnabled={true} - domStorageEnabled={true} - thirdPartyCookiesEnabled={true} - sharedCookiesEnabled={true} - onMessage={handleMessage} - injectedJavaScript={injectedJS} - interceptUrlPattern="accounts.paytm.com/oauth-js-sdk/" - interceptInjectedScript={` -if (!window.__paytmMessageHandler) { - window.__paytmMessageHandler = function(event) { - if (event.data.type === 'set_field') { - const el = document.getElementById(event.data.fieldId); - if (el) { - el.click(); - el.focus(); - el.value = event.data.value; - el.dispatchEvent(new Event('input', { bubbles: true })); - el.dispatchEvent(new Event('change', { bubbles: true })); - el.dispatchEvent(new Event('blur', { bubbles: true })); - } - } - if (event.data.type === 'click_login') { - const btn = document.getElementById('login_button'); - if (btn) btn.click(); - } - }; - window.addEventListener('message', window.__paytmMessageHandler); - window.parent.postMessage({type: 'iframe_ready'}, '*'); -} - `} - /> - - - Test Controls - - Mobile: - syncToIframe('email_mobile_login', text)} - placeholder="Enter mobile number" - keyboardType="phone-pad" - /> - - Password: - syncToIframe('password_login', text)} - placeholder="Enter password" - secureTextEntry - /> - - - Login - - - - ); - } - + render() { - // return this.renderWebDemo(); return ( {(() => { diff --git a/libs/rnwalletman b/libs/rnwalletman index ec1f7a1..7d3770f 160000 --- a/libs/rnwalletman +++ b/libs/rnwalletman @@ -1 +1 @@ -Subproject commit ec1f7a1bd36b0b4f9b696de3cb9e0890cf0c2368 +Subproject commit 7d3770f6a936cdb8281ac9010cb6b94bb3c65060 diff --git a/logs/phonepe_business/logsrv_2026-03-12_18-36-04_341.har b/logs/phonepe_business/logsrv_2026-03-12_18-36-04_341.har new file mode 100644 index 0000000..2952487 --- /dev/null +++ b/logs/phonepe_business/logsrv_2026-03-12_18-36-04_341.har @@ -0,0 +1,247 @@ +{ + "log": { + "version": "1.2", + "creator": { + "name": "pxlogserver", + "version": "1.0" + }, + "entries": [ + { + "startedDateTime": "2026-03-12T10:36:04.847032Z", + "time": 120, + "pageref": "ProxyPin", + "_id": 341, + "_app": { + "id": "com.android.browser", + "name": "浏览器", + "path": "com.android.browser", + "os": "android" + }, + "request": { + "method": "GET", + "url": "https://web-api.phonepe.com/apis/mi-web/v1/user/me", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "Host", + "value": "web-api.phonepe.com" + }, + { + "name": "Connection", + "value": "keep-alive" + }, + { + "name": "sec-ch-ua-platform", + "value": "\"Android\"" + }, + { + "name": "sec-ch-ua", + "value": "\"XiaoMiBrowser\";v=\"135\", \"Not-A.Brand\";v=\"8\", \"Chromium\";v=\"135\"" + }, + { + "name": "X-DEVICE-FINGERPRINT", + "value": "123" + }, + { + "name": "FINGERPRINT", + "value": "pbweb_640eaee84ba269f8d2a5ae6cc30b4c70_znXfL.pbweb_640eaee84ba269f8d2a5ae6cc30b4c70_znXfL.pbweb_640eaee84ba269f8d2a5ae6cc30b4c70_znXfL.pbweb_640eaee84ba269f8d2a5ae6cc30b4c70_znXfL" + }, + { + "name": "sec-ch-ua-mobile", + "value": "?1" + }, + { + "name": "X-APP-ID", + "value": "oculus" + }, + { + "name": "X-SOURCE-TYPE", + "value": "WEB" + }, + { + "name": "User-Agent", + "value": "Mozilla/5.0 (Linux; U; Android 12; zh-cn; M2004J7AC Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.7049.79 Mobile Safari/537.36 XiaoMi/MiuiBrowser/20.13.1040306" + }, + { + "name": "Accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "NAMESPACE", + "value": "insights" + }, + { + "name": "X-SOURCE-PLATFORM", + "value": "WEB" + }, + { + "name": "Origin", + "value": "https://business.phonepe.com" + }, + { + "name": "Sec-Fetch-Site", + "value": "same-site" + }, + { + "name": "Sec-Fetch-Mode", + "value": "cors" + }, + { + "name": "Sec-Fetch-Dest", + "value": "empty" + }, + { + "name": "Referer", + "value": "https://business.phonepe.com/" + }, + { + "name": "Accept-Encoding", + "value": "gzip, deflate, br, zstd" + }, + { + "name": "Accept-Language", + "value": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7" + }, + { + "name": "Cookie", + "value": "_ppabwdcid=ZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKcGMzTWlPaUpRYUc5dVpWQmxSMkZ5Wm1sbGJHUWlMQ0pxZEdraU9pSTJNREJsWWpjMVl5MDVZalV4TFRReU4yUXRPR1U1TlMxa01ETXpNekF5Tnprek5EUWlMQ0pwWVhRaU9qRTJOekUyTURReU5ERXNJbTVpWmlJNk1UWTNNVFl3TkRFeU1Td2ljM1ZpSWpvaVFsVlRTVTVGVTFOZlYwVkNYMFJCVTBoQ1QwRlNSQ0lzSW5KdmJHVWlPaUpwYm1kbGMzUWlmUS5rdkcxQUJCNGJpcnVQSllRektFa1NYME9sUlBINVFDNW9tX2k5Mm9CNG9mV25vV0c4eFp3cTMwT1cxdEVCX3J5Zm4wTzhFVUd2MnE5VGlrMUxJaUw4Zw==; _ppabwdsid=c6493b8e-2058-4669-9171-a17a0541bc36; _ppabwduref=PAUREF2603121549252265439926; MERCHANT_USER_A_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJpZGVudGl0eU1hbmFnZXIiLCJ2ZXJzaW9uIjoiNC4wIiwidGlkIjoiNTllYmNhYjEtNDZmOC00OGEzLTljOWItMTNlZTAwYjYzZmJlIiwic2lkIjoiNjNlM2FiMmQtNjY0NS00MzdkLWJmY2UtYmM0ZjA4Nzc4MmE5IiwiaWF0IjoxNzczMzExNzY0LCJleHAiOjE3NzMzMTUzNjR9.bW7yftSlX01GjhSvqcyFpcN8uxmvJBT-peZ9ri-0WCnoIcyLOK5k8_UtlDuN2P5BgFcrf8cS8NY4P4QtpE9E5w; MERCHANT_USER_R_TOKEN=9d72bbae-b5f4-41d6-b9a4-4afa91ca21ad; _CKB2N1BHVZ=z47rnRb3g1XTz+98e1LAhEnus7ZUJfsVrV5qt7a4ATfURRXB4baq2Usu5g/jNHof; _X52F70K3N=AwdNjCE22fpARH1oJ9JdkdqajSa4Re09" + } + ], + "queryString": [], + "postData": { + "mimeType": "", + "text": "" + }, + "headersSize": -1, + "bodySize": 0 + }, + "cache": {}, + "timings": { + "send": 0, + "wait": 120, + "receive": 0 + }, + "serverIPAddress": "192.168.1.117", + "response": { + "status": 200, + "statusText": "OK", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "Date", + "value": "Thu, 12 Mar 2026 10:36:04 GMT" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Connection", + "value": "keep-alive" + }, + { + "name": "x-b3-traceid", + "value": "2c202a1b0958f77e" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "x-load-shed-actions-signal", + "value": "HEALTHY::1773254781000" + }, + { + "name": "x-load-shed-actions", + "value": "eyJ3b3JrZmxvd1J1bGVzIjpbXSwiaGVhbHRoU3RhdHVzIjoiSEVBTFRIWSIsInZlcnNpb24iOiJ2MSIsImFwaVJ1bGVzIjp7ImFwaXMiOltdLCJleHBpcnlUaW1lSW5NaWxsaXMiOjAsInNjb3BlIjoiU0VTU0lPTiJ9LCJ1cGRhdGVkQXQiOjE3NzMyNTQ3ODEwMDB9" + }, + { + "name": "x-requested-method", + "value": "GET" + }, + { + "name": "x-response-backend-time", + "value": "1773311764923" + }, + { + "name": "x-request-backend-time", + "value": "1773311764908" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-xss-protection", + "value": "1; mode=block" + }, + { + "name": "strict-transport-security", + "value": "max-age=0; includeSubDomains; preload" + }, + { + "name": "content-security-policy", + "value": "default-src 'self'; script-src 'self' 'unsafe-eval' https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/; style-src https://fonts.googleapis.com 'unsafe-inline' 'self'; img-src https://imgstatic.phonepe.com 'self' data:; font-src https://fonts.gstatic.com/ 'self' data:; connect-src 'self'; report-uri https://csp.phonepe.com/log; frame-src https://www.google.com/recaptcha/" + }, + { + "name": "access-control-allow-origin", + "value": "https://business.phonepe.com" + }, + { + "name": "access-control-allow-credentials", + "value": "true" + }, + { + "name": "access-control-allow-methods", + "value": "GET, POST, OPTIONS, PUT, DELETE, PATCH" + }, + { + "name": "access-control-allow-headers", + "value": "X-DEVICE-FINGERPRINT, Content-Disposition, DNT, Content-Length , X-USER-ROLE, DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range, Origin, X-Requested-With, Content-Type, Accept, X-APP-ID, X-CSRF-TOKEN, Set-Cookie, NAMESPACE, FINGERPRINT, X-CAPTCHA-TOKEN, x-source-type, x-app-version, x-source-platform, h-captcha-token, X-INSTANCE-ID, X-HANDSHAKE-KEY, X-WORKFLOW-ID" + }, + { + "name": "access-control-expose-headers", + "value": "X-CSRF-TOKEN, X-USER-ROLE, X-API-EXCEPTION-CODE, X-EXPIRED-TOKENS, Content-Length, X-Polling-Time, X-Polling-Frequency" + }, + { + "name": "Content-Encoding", + "value": "gzip" + }, + { + "name": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "name": "Server", + "value": "cloudflare" + }, + { + "name": "CF-RAY", + "value": "9db227e278c34095-SIN" + }, + { + "name": "Content-Length", + "value": "256" + } + ], + "content": { + "size": 256, + "mimeType": "application/json", + "text": "{\"userId\":\"OU2512180940078380000989\",\"phoneNumber\":\"7528905079\",\"completePhoneNumber\":\"+917528905079\",\"name\":\"7528905079\",\"active\":true,\"emailVerified\":false,\"phoneNumberVerified\":true,\"blacklisted\":false,\"hasPassword\":false,\"groupName\":\"merchant\",\"groupValue\":\"M23UXERUGXJ5M\",\"merchantUserId\":\"MU2512180940084553897430\",\"groupId\":16989846,\"groupStatus\":\"ACTIVE\",\"roleId\":\"R1908081841518350641692\"}" + }, + "redirectURL": "", + "headersSize": -1, + "bodySize": 256 + }, + "_timestamp": "2026-03-12 18:36:04", + "_rule": "logsrv" + } + ] + } +} \ No newline at end of file