Giter Club home page Giter Club logo

Comments (17)

royalrick avatar royalrick commented on May 26, 2024 2

新版本已增加🙏

from weapp.

royalrick avatar royalrick commented on May 26, 2024 2

check_path=false的时候,我这边刚刚测试还是提示41030,develop模式

41030 | page 不合法(页面不存在或者小程序没有发布、根路径前加 /或者携带参数)
CheckPath bool json:"check_path,omitempty"
这个omitempty不能有,不然传false的时候会默认不传递给微信,恰巧微信那边这个参数默认值是true,所以这个参数传false 时相当于没生效

v3.6.10已经修复

from weapp.

itltf512116 avatar itltf512116 commented on May 26, 2024

新版本已增加🙏

https://pkg.go.dev/github.com/medivhzhan/weapp/v3#UnlimitedQRCode
好像还是没有这个参数呀

from weapp.

itltf512116 avatar itltf512116 commented on May 26, 2024

新版本已增加🙏

e10f985
这个commit好像还是有问题,env_version应该是string,代码里面应该是bool了
另一个问题是go get 3.6.7的,好像还是没法看到这俩参数

from weapp.

fukcup avatar fukcup commented on May 26, 2024

func (cli *Client) GetUnlimitedQRCode(code *UnlimitedQRCode) (*http.Response, *request.CommonError, error) {}应该是这个方法里面的入参

from weapp.

royalrick avatar royalrick commented on May 26, 2024

新版本已增加🙏

https://pkg.go.dev/github.com/medivhzhan/weapp/v3#UnlimitedQRCode 好像还是没有这个参数呀

再看下最新版本呢

from weapp.

royalrick avatar royalrick commented on May 26, 2024

func (cli *Client) GetUnlimitedQRCode(code *UnlimitedQRCode) (*http.Response, *request.CommonError, error) {}应该是这个方法里面的入参

weapp.NewWXACode().GetUnlimited()

用这个试试呢

from weapp.

itltf512116 avatar itltf512116 commented on May 26, 2024

新版本已增加🙏

https://pkg.go.dev/github.com/medivhzhan/weapp/v3#UnlimitedQRCode 好像还是没有这个参数呀

再看下最新版本呢

https://pkg.go.dev/github.com/medivhzhan/weapp/[email protected]/wxacode#UnlimitedQRCode
参数有了,不过注释和类型好像不太对,这俩参数,一个bool,一个string

from weapp.

itltf512116 avatar itltf512116 commented on May 26, 2024

是我用错方法了还是确实有问题?我刚刚测试的时候,提示47001,data format error

	resp, ce, err := wxClient.NewWXACode().GetUnlimited(&wxacode.UnlimitedQRCode{
		Scene:      fmt.Sprintf("?id=%d&stationId=%d&opType=%d", 1, 1, 1),
		Page:       "pages/shop/index/index",
		Width:      430,
		EnvVersion: "develop",
		CheckPath:  "false",
		AutoColor:  true,
		IsHyaline:  false,
	})

from weapp.

royalrick avatar royalrick commented on May 26, 2024

v3.6.9已经OK了😅

from weapp.

itltf512116 avatar itltf512116 commented on May 26, 2024

check_path=false的时候,我这边刚刚测试还是提示41030,develop模式

from weapp.

royalrick avatar royalrick commented on May 26, 2024

check_path=false的时候,我这边刚刚测试还是提示41030,develop模式

这个应该就是调用层面的问题了

from weapp.

royalrick avatar royalrick commented on May 26, 2024

check_path=false的时候,我这边刚刚测试还是提示41030,develop模式

41030 | page 不合法(页面不存在或者小程序没有发布、根路径前加 /或者携带参数)

from weapp.

itltf512116 avatar itltf512116 commented on May 26, 2024

check_path=false的时候,我这边刚刚测试还是提示41030,develop模式

41030 | page 不合法(页面不存在或者小程序没有发布、根路径前加 /或者携带参数)
CheckPath bool json:"check_path,omitempty"
这个omitempty不能有,不然传false的时候会默认不传递给微信,恰巧微信那边这个参数默认值是true,所以这个参数传false 时相当于没生效

from weapp.

kailuo99 avatar kailuo99 commented on May 26, 2024

V3版本确实未加入CheckPath 和 EnvVersion,希望能合并到V3版本里

from weapp.

royalrick avatar royalrick commented on May 26, 2024

V3版本确实未加入CheckPath 和 EnvVersion,希望能合并到V3版本里

resp, ce, err := wxClient.NewWXACode().GetUnlimited(&wxacode.UnlimitedQRCode{
		Scene:      fmt.Sprintf("?id=%d&stationId=%d&opType=%d", 1, 1, 1),
		Page:       "pages/shop/index/index",
		Width:      430,
		EnvVersion: "develop",
		CheckPath:  "false",
		AutoColor:  true,
		IsHyaline:  false,
	})

用这个也不行吗?

from weapp.

williambao avatar williambao commented on May 26, 2024

@royalrick v3版本还没有这个。

from weapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.