Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支付宝小程序storage展示不正确 #147

Closed
4 tasks done
ahao430 opened this issue Feb 19, 2024 · 5 comments
Closed
4 tasks done

支付宝小程序storage展示不正确 #147

ahao430 opened this issue Feb 19, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@ahao430
Copy link

ahao430 commented Feb 19, 2024

Describe the bug

支付宝小程序引入page-spy-alipay并初始化。

import PageSpy from '@huolala-tech/page-spy-alipay';
new PageSpy({
    api: 'test.jikejishu.com',
    project: 'xx小程序',
});

https://test.jikejishu.com的房间列表看到房间,进去看到console和network正常,但是storage一排的value值都是{"success":true}。

模拟器:
image

房间storage展示:
image

后续再操作,看到storage对应项的值就正常了。仅仅是初始的值不正确。

Steps to reproduce

  1. 打开支付宝小程序
  2. 安装pagespy。引入并初始化
import PageSpy from '@huolala-tech/page-spy-alipay';
new PageSpy({
    api: 'test.jikejishu.com',
    project: 'xx小程序',
});
  1. 开发工具设置:
image image
  1. 小程序代码写入storage,可以看到当触发写入时,该项在网页展示正确。点击storage刷新按钮,所有storage又变成{success: true}

System Info

System:
    OS: macOS 14.2.1
    CPU: (8) arm64 Apple M1
    Memory: 74.52 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.16.0/bin/yarn
    npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
    pnpm: 7.29.3 - ~/.nvm/versions/node/v16.16.0/bin/pnpm
  npmPackages:
    @huolala-tech/page-spy-alipay: ^1.7.6 => 1.7.6

Logs

No response

Validations

@ahao430 ahao430 added the bug Something isn't working label Feb 19, 2024
@ahao430 ahao430 changed the title 小程序storage展示不正确 支付宝小程序storage展示不正确 Feb 19, 2024
@ahao430
Copy link
Author

ahao430 commented Feb 20, 2024

再提一个功能建议,关于console面板。
小程序的console面板,没有h5的输入能力,群里询问是因为小程序限制了热编译。但是可以做成下拉框,提供一些预设的能力。
如:

  • 打印一些页面和应用数据(app、appId、app.globalData、launchOptions()、page.data、page.route等等)
  • 打印设备和环境信息(mp.getSystemInfoSync()、mp.getNetworkType等等)
  • 选择页面执行页面跳转,可输入参数和跳转方式。
  • 应用reLaunch,可设置参数
  • 读写storage,清空缓存
  • 输入函数名和参数,执行页面或app指定函数
  • 打开授权设置

@qkang07
Copy link
Collaborator

qkang07 commented Feb 21, 2024

已更新 @huolala-tech/page-spy-alipay@1.7.8

@qkang07 qkang07 closed this as completed Feb 21, 2024
@11003
Copy link

11003 commented Feb 21, 2024

image
image
最新版 "@huolala-tech/page-spy-alipay": "^1.7.8",

@qkang07
Copy link
Collaborator

qkang07 commented Feb 21, 2024

image image 最新版 "@huolala-tech/page-spy-alipay": "^1.7.8",

这是 eslint 报的,看下你的 eslint 或 tslint 或 tsconfig

@qkang07
Copy link
Collaborator

qkang07 commented Feb 21, 2024

image image 最新版 "@huolala-tech/page-spy-alipay": "^1.7.8",

这是 eslint 报的,看下你的 eslint 或 tslint 或 tsconfig

image
报错上的建议照做就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants