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

门店创建API ($poi->create) 建议返回 poi_id / exception #774

Closed
ryh opened this issue Jun 30, 2017 · 1 comment
Closed

门店创建API ($poi->create) 建议返回 poi_id / exception #774

ryh opened this issue Jun 30, 2017 · 1 comment

Comments

@ryh
Copy link

ryh commented Jun 30, 2017

我用的环境

PHP 版本:7.1
overtrue/wechat 版本:master

问题及现象

微信公众号的API 现在创建时就会返回poi_id https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1444378120

门店poiid体系已做改造,poiid自创建后立刻分配,不再受审核影响发生变化。
创建门店接口调用成功后会返回errcode 0、errmsg ok,会实时返回唯一的poiid。

所以建议$poi->create 成功后直接返回poi_id方便保存

@overtrue
Copy link
Collaborator

overtrue commented Jul 6, 2017

不能随便修改原有的 API 用法,这样别人已经上线的应用容易出问题,请使用 $poi->createAndGetId($data);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants