微擎啦啦外卖跑腿二次开发笔记
## **平台入口**
首页商品门店展示
http://newshop.gouwanmei.wang/app/index.php?i=1&c=entry&ctrl=wmall&ac=home&op=index&do=mobile&m=we7_wmall
商户入驻注册页面
http://newshop.gouwanmei.wang/app/index.php?i=1&c=entry&ctrl=wmall&ac=store&op=settle&do=mobile&m=we7_wmall
商家登录页面
http://newshop.gouwanmei.wang/app/index.php?i=1&c=entry&ctrl=manage&ac=home&op=index&do=mobile&m=we7_wmall
添加店员之前, 你需要新增一个店员账户(注册链接), 然后通过搜索”手机号”把他添加进来
每个店铺可设置一个管理员, 管理员可在电脑端登陆商户后台,店员只能在手机上登陆管理门店。电脑端登陆地址:http://newshop.gouwanmei.wang/web/wmerchant.php?c=site&a=entry&ctrl=store&ac=oauth&op=login&do=web&m=we7_wmall&i=1
配送员入口
http://newshop.gouwanmei.wang/app/index.php?i=1&c=entry&ctrl=delivery&ac=home&op=index&do=mobile&m=we7_wmall
配送员注册入口
http://newshop.gouwanmei.wang/app/index.php?i=1&c=entry&ctrl=delivery&ac=auth&op=register&do=mobile&m=we7_wmall
配送员登陆入口
http://newshop.gouwanmei.wang/app/index.php?i=1&c=entry&ctrl=delivery&ac=auth&op=login&do=mobile&m=we7_wmall
店员登录入口
http://newshop.gouwanmei.wang/web/wmerchant.php?c=site&a=entry&ctrl=store&ac=oauth&op=login&do=web&m=we7_wmall&i=1
手机注册入口
http://newshop.gouwanmei.wang/app/index.php?i=1&c=entry&ctrl=manage&ac=auth&op=register&do=mobile&m=we7_wmall
手机登录入口
http://newshop.gouwanmei.wang/app/index.php?i=1&c=entry&ctrl=manage&ac=auth&op=login&do=mobile&m=we7_wmall
门店添加配送员列表方法:
登录门店管理后台->门店->配送员列表 填写配送员电话即可
http://newshop.gouwanmei.wang/app/index.php?i=1&c=entry&ctrl=wmall&ac=home&op=index&do=mobile&m=we7_wmall
m=we7_wmall 模块插件名
do=mobile inc下 mobile文件夹
ctrl=wmall mobile下wmall文件夹
ac=home wmall下文件夹
op=index home下 index.inc.php
$_GPC 全局请求变量, 获取 $_GET, $_POST, $_COOKIES 中的变量,打印如下
http://newshop.gouwanmei.wang/app/index.php?i=1&c=entry&ctrl=wmall&ac=home&op=index&do=mobile&m=we7_wmall&d=1&aid=1&address=%E4%B8%AD%E5%BE%B7%E5%B9%BF%E5%9C%BA&lat=35.441422&lng=116.610941
Var_dump($_GPC)打印如下:
array(20) {
[“i”]=>
string(1) “1”
[“c”]=>
string(5) “entry”
[“ctrl”]=>
string(5) “wmall”
[“ac”]=>
string(4) “home”
[“op”]=>
string(5) “index”
[“do”]=>
string(6) “mobile”
[“m”]=>
string(9) “we7_wmall”
[“d”]=>
string(1) “1”
[“aid”]=>
string(1) “1”
[“address”]=>
string(12) “中德广场”
[“lat”]=>
string(9) “35.441422”
[“lng”]=>
string(10) “116.610941”
[“__mg_sid”]=>
string(1) “2”
[“__aid”]=>
string(1) “1”
[“__lat”]=>
string(9) “35.441422”
[“__lng”]=>
string(10) “116.610941”
[“__address”]=>
string(36) “%E4%B8%AD%E5%BE%B7%E5%B9%BF%E5%9C%BA”
[“__entry”]=>
NULL
[“__state”]=>
NULL
[“state”]=>
NULL
}
$merchdata=$this->merchData();
$_W
$_W(大写W),是系统中最为重要的全局变量,微擎系统中很多常用的数据都存储在这个变量之中,下面我们详细讲解一下此变量的结构。
$_W可参考地址:http://www.thinkphp.cn/topic/46477.html
Var_dump($_W)打印如下:
array(44) {
[“config”]=>
array(4) {
[“db”]=>
array(5) {
[“master”]=>
array(8) {
[“host”]=>
string(9) “127.0.0.1”
[“username”]=>
string(7) “newshop”
[“password”]=>
string(16) “yTjTchxyMctMYQFX”
[“port”]=>
string(4) “3306”
[“database”]=>
string(7) “newshop”
[“charset”]=>
string(4) “utf8”
[“pconnect”]=>
int(0)
[“tablepre”]=>
string(4) “ims_”
}
[“slave_status”]=>
bool(false)
[“slave”]=>
array(1) {
[1]=>
array(9) {
[“host”]=>
string(0) “”
[“username”]=>
string(0) “”
[“password”]=>
string(0) “”
[“port”]=>
string(4) “3307”
[“database”]=>
string(0) “”
[“charset”]=>
string(4) “utf8”
[“pconnect”]=>
int(0)
[“tablepre”]=>
string(4) “ims_”
[“weight”]=>
int(0)
}
}
[“common”]=>
array(1) {
[“slave_except_table”]=>
array(1) {
[0]=>
string(13) “core_sessions”
}
}
[“tablepre”]=>
string(4) “ims_”
}
[“cookie”]=>
array(3) {
[“pre”]=>
string(5) “36ff_”
[“domain”]=>
string(0) “”
[“path”]=>
string(1) “/”
}
[“setting”]=>
array(13) {
[“charset”]=>
string(5) “utf-8”
[“cache”]=>
string(5) “mysql”
[“timezone”]=>
string(13) “Asia/Shanghai”
[“memory_limit”]=>
string(4) “256M”
[“filemode”]=>
int(420)
[“authkey”]=>
string(8) “2f2a518a”
[“founder”]=>
string(1) “1”
[“development”]=>
int(0)
[“referrer”]=>
int(0)
[“https”]=>
int(0)
[“memcache”]=>
array(5) {
[“server”]=>
string(0) “”
[“port”]=>
int(11211)
[“pconnect”]=>
int(1)
[“timeout”]=>
int(1)
[“session”]=>
int(1)
}
[“proxy”]=>
array(2) {
[“host”]=>
string(0) “”
[“auth”]=>
string(0) “”
}
[“maxtimesql”]=>
int(5)
}
[“upload”]=>
array(3) {
[“image”]=>
array(2) {
[“extentions”]=>
array(4) {
[0]=>
string(3) “gif”
[1]=>
string(3) “jpg”
[2]=>
string(4) “jpeg”
[3]=>
string(3) “png”
}
[“limit”]=>
int(5000)
}
[“attachdir”]=>
string(10) “attachment”
[“audio”]=>
array(2) {
[“extentions”]=>
array(1) {
[0]=>
string(3) “mp3”
}
[“limit”]=>
int(5000)
}
}
}
[“timestamp”]=>
int(1539582151)
[“charset”]=>
string(5) “utf-8”
[“clientip”]=>
string(14) “123.132.49.154”
[“ishttps”]=>
bool(false)
[“isajax”]=>
bool(false)
[“ispost”]=>
bool(false)
[“sitescheme”]=>
string(7) “http://”
[“script_name”]=>
string(14) “/app/index.php”
[“siteroot”]=>
string(30) “http://newshop.gouwanmei.wang/”
[“siteurl”]=>
string(189) “http://newshop.gouwanmei.wang/app/index.php?i=1&c=entry&ctrl=wmall&ac=home&op=index&do=mobile&m=we7_wmall&d=1&aid=1&address=%E4%B8%AD%E5%BE%B7%E5%B9%BF%E5%9C%BA&lat=35.441422&lng=116.610941”
[“setting”]=>
array(9) {
[“authmode”]=>
int(1)
[“close”]=>
array(2) {
[“status”]=>
string(1) “0”
[“reason”]=>
string(0) “”
}
[“copyright”]=>
array(17) {
[“sitename”]=>
string(12) “微信魔方”
[“url”]=>
string(24) “http://weizan.52jscn.com”
[“statcode”]=>
string(0) “”
[“footerleft”]=>
string(21) “powered by 52jscn.com”
[“footerright”]=>
string(0) “”
[“flogo”]=>
string(0) “”
[“blogo”]=>
string(0) “”
[“baidumap”]=>
array(2) {
[“lng”]=>
string(10) “114.060055”
[“lat”]=>
string(9) “22.529554”
}
[“company”]=>
string(20) “XX科技有限公司”
[“address”]=>
string(16) “深圳XX区XX街”
[“person”]=>
string(6) “微信”
[“phone”]=>
string(11) “15800008888”
[“qq”]=>
string(7) “XXXXXXX”
[“email”]=>
string(0) “”
[“keywords”]=>
string(82) “微信,微信,微信公众平台,公众平台二次开发,公众平台开源软件”
[“description”]=>
string(82) “微信,微信,微信公众平台,公众平台二次开发,公众平台开源软件”
[“showhomepage”]=>
int(1)
}
[“register”]=>
array(4) {
[“open”]=>
int(1)
[“verify”]=>
int(0)
[“code”]=>
int(1)
[“groupid”]=>
int(1)
}
[“addons”]=>
array(2) {
[“addons_url”]=>
string(27) “http://addons.weizancms.com”
[“c_url”]=>
string(20) “http://www.012wz.com”
}
[“module_ban”]=>
array(0) {
}
[“module_upgrade”]=>
array(0) {
}
[“module_receive_ban”]=>
array(0) {
}
[“upload”]=>
array(3) {
[“image”]=>
array(2) {
[“extentions”]=>
array(4) {
[0]=>
string(3) “gif”
[1]=>
string(3) “jpg”
[2]=>
string(4) “jpeg”
[3]=>
string(3) “png”
}
[“limit”]=>
int(5000)
}
[“attachdir”]=>
string(10) “attachment”
[“audio”]=>
array(2) {
[“extentions”]=>
array(1) {
[0]=>
string(3) “mp3”
}
[“limit”]=>
int(5000)
}
}
}
[“os”]=>
string(6) “mobile”
[“container”]=>
string(6) “wechat”
[“uniacid”]=>
int(1)
[“account”]=>
array(44) {
[“acid”]=>
string(1) “1”
[“uniacid”]=>
string(1) “1”
[“token”]=>
string(32) “bso32rf5ijmrwzbfusp1puenetfourdt”
[“encodingaeskey”]=>
string(43) “Q1oBgWphCNOocWUtXhsgwCqcPZMGl8G0ypHsw3M8RXk”
[“access_token”]=>
string(0) “”
[“level”]=>
string(1) “4”
[“name”]=>
string(15) “济宁微商圈”
[“account”]=>
string(17) “2940729540@qq.com”
[“original”]=>
string(15) “gh_2e11e54adfad”
[“signature”]=>
string(0) “”
[“country”]=>
string(0) “”
[“province”]=>
string(0) “”
[“city”]=>
string(0) “”
[“username”]=>
string(0) “”
[“password”]=>
string(0) “”
[“lastupdate”]=>
string(1) “0”
[“key”]=>
string(18) “wx2d826f8fba2f2971”
[“secret”]=>
string(32) “62002e6ad0152ab10910082860c04781”
[“styleid”]=>
string(1) “1”
[“jsapi_ticket”]=>
string(0) “”
[“subscribeurl”]=>
string(0) “”
[“card_ticket”]=>
string(0) “”
[“topad”]=>
string(0) “”
[“footad”]=>
string(0) “”
[“auth_refresh_token”]=>
string(0) “”
[“type”]=>
string(1) “1”
[“isconnect”]=>
string(1) “1”
[“isdeleted”]=>
string(1) “0”
[“endtime”]=>
NULL
[“uid”]=>
NULL
[“starttime”]=>
NULL
[“groups”]=>
array(1) {
[1]=>
array(6) {
[“groupid”]=>
string(1) “1”
[“uniacid”]=>
string(1) “1”
[“title”]=>
string(15) “默认会员组”
[“orderlist”]=>
string(1) “0”
[“isdefault”]=>
string(1) “1”
[“credit”]=>
string(1) “0”
}
}
[“setting”]=>
array(31) {
[“uniacid”]=>
string(1) “1”
[“passport”]=>
array(3) {
[“focusreg”]=>
int(0)
[“item”]=>
string(5) “email”
[“type”]=>
string(8) “password”
}
[“oauth”]=>
array(2) {
[“status”]=>
string(1) “0”
[“account”]=>
string(1) “0”
}
[“uc”]=>
array(1) {
[“status”]=>
int(0)
}
[“notify”]=>
array(1) {
[“sms”]=>
array(2) {
[“balance”]=>
int(0)
[“signature”]=>
string(0) “”
}
}
[“creditnames”]=>
array(5) {
[“credit1”]=>
array(2) {
[“title”]=>
string(6) “积分”
[“enabled”]=>
int(1)
}
[“credit2”]=>
array(2) {
[“title”]=>
string(6) “余额”
[“enabled”]=>
int(1)
}
[“credit3”]=>
array(2) {
[“title”]=>
string(0) “”
[“enabled”]=>
int(0)
}
[“credit4”]=>
array(2) {
[“title”]=>
string(0) “”
[“enabled”]=>
int(0)
}
[“credit5”]=>
array(2) {
[“title”]=>
string(0) “”
[“enabled”]=>
int(0)
}
}
[“creditbehaviors”]=>
array(2) {
[“activity”]=>
string(7) “credit1”
[“currency”]=>
string(7) “credit2”
}
[“welcome”]=>
string(0) “”
[“default”]=>
string(0) “”
[“shenhe”]=>
string(0) “”
[“default_message”]=>
string(0) “”
[“shortcuts”]=>
string(0) “”
[“payment”]=>
array(4) {
[“credit”]=>
array(1) {
[“switch”]=>
bool(false)
}
[“alipay”]=>
array(4) {
[“switch”]=>
bool(false)
[“account”]=>
string(0) “”
[“partner”]=>
string(0) “”
[“secret”]=>
string(0) “”
}
[“wechat”]=>
array(5) {
[“switch”]=>
bool(false)
[“account”]=>
bool(false)
[“signkey”]=>
string(0) “”
[“partner”]=>
string(0) “”
[“key”]=>
string(0) “”
}
[“delivery”]=>
array(1) {
[“switch”]=>
bool(false)
}
}
[“groupdata”]=>
string(77) “a:3:{s:8:”isexpire”;i:0;s:10:”oldgroupid”;s:0:””;s:7:”endtime”;i:1410364919;}”
[“stat”]=>
string(0) “”
[“bootstrap”]=>
string(0) “”
[“menuset”]=>
string(0) “”
[“default_site”]=>
string(1) “1”
[“sync”]=>
string(1) “0”
[“jsauth_acid”]=>
string(1) “0”
[“recharge”]=>
string(0) “”
[“tplnotice”]=>
string(0) “”
[“grouplevel”]=>
string(1) “0”
[“mcplugin”]=>
string(0) “”
[“msg”]=>
string(0) “”
[“print”]=>
string(0) “”
[“statistics”]=>
string(0) “”
[“exchange_enable”]=>
string(1) “0”
[“coupon_type”]=>
string(1) “0”
[“bind_domain”]=>
string(0) “”
[“tid”]=>
string(1) “0”
}
[“grouplevel”]=>
string(1) “0”
[“logo”]=>
string(71) “https://newshop.gouwanmei.wang/attachment/headimg_1.jpg?time=1530235482”
[“qrcode”]=>
string(69) “http://newshop.gouwanmei.wang/attachment/qrcode_1.jpg?time=1539582151”
[“switchurl”]=>
string(51) “./index.php?c=account&a=display&do=switch&uniacid=1”
[“sms”]=>
int(0)
[“setmeal”]=>
array(5) {
[“uid”]=>
int(-1)
[“username”]=>
string(9) “创始人”
[“timelimit”]=>
string(9) “未设置”
[“groupid”]=>
string(2) “-1”
[“groupname”]=>
string(12) “所有服务”
}
[“oauth”]=>
array(5) {
[“key”]=>
string(18) “wx2d826f8fba2f2971”
[“secret”]=>
string(32) “62002e6ad0152ab10910082860c04781”
[“acid”]=>
string(1) “1”
[“type”]=>
string(1) “1”
[“level”]=>
string(1) “4”
}
[“groupid”]=>
NULL
[“avatar”]=>
string(70) “http://newshop.gouwanmei.wang/attachment/headimg_1.jpg?time=1539582151”
[“jssdkconfig”]=>
array(4) {
[“appId”]=>
string(18) “wx2d826f8fba2f2971”
[“nonceStr”]=>
string(16) “VHgK1WTv3pEv63Hv”
[“timestamp”]=>
string(10) “1539582151”
[“signature”]=>
string(40) “21b0f52bfd2b1a79d1d78ae24099791d8308a687”
}
[“jsauth_acid”]=>
string(1) “1”
}
[“uniaccount”]=>
array(39) {
[“acid”]=>
string(1) “1”
[“uniacid”]=>
string(1) “1”
[“token”]=>
string(32) “bso32rf5ijmrwzbfusp1puenetfourdt”
[“encodingaeskey”]=>
string(43) “Q1oBgWphCNOocWUtXhsgwCqcPZMGl8G0ypHsw3M8RXk”
[“access_token”]=>
string(0) “”
[“level”]=>
string(1) “4”
[“name”]=>
string(15) “济宁微商圈”
[“account”]=>
string(17) “2940729540@qq.com”
[“original”]=>
string(15) “gh_2e11e54adfad”
[“signature”]=>
string(0) “”
[“country”]=>
string(0) “”
[“province”]=>
string(0) “”
[“city”]=>
string(0) “”
[“username”]=>
string(0) “”
[“password”]=>
string(0) “”
[“lastupdate”]=>
string(1) “0”
[“key”]=>
string(18) “wx2d826f8fba2f2971”
[“secret”]=>
string(32) “62002e6ad0152ab10910082860c04781”
[“styleid”]=>
string(1) “1”
[“jsapi_ticket”]=>
string(0) “”
[“subscribeurl”]=>
string(0) “”
[“card_ticket”]=>
string(0) “”
[“topad”]=>
string(0) “”
[“footad”]=>
string(0) “”
[“auth_refresh_token”]=>
string(0) “”
[“type”]=>
string(1) “1”
[“isconnect”]=>
string(1) “1”
[“isdeleted”]=>
string(1) “0”
[“endtime”]=>
NULL
[“uid”]=>
NULL
[“starttime”]=>
NULL
[“groups”]=>
array(1) {
[1]=>
array(6) {
[“groupid”]=>
string(1) “1”
[“uniacid”]=>
string(1) “1”
[“title”]=>
string(15) “默认会员组”
[“orderlist”]=>
string(1) “0”
[“isdefault”]=>
string(1) “1”
[“credit”]=>
string(1) “0”
}
}
[“setting”]=>
array(31) {
[“uniacid”]=>
string(1) “1”
[“passport”]=>
array(3) {
[“focusreg”]=>
int(0)
[“item”]=>
string(5) “email”
[“type”]=>
string(8) “password”
}
[“oauth”]=>
array(2) {
[“status”]=>
string(1) “0”
[“account”]=>
string(1) “0”
}
[“uc”]=>
array(1) {
[“status”]=>
int(0)
}
[“notify”]=>
array(1) {
[“sms”]=>
array(2) {
[“balance”]=>
int(0)
[“signature”]=>
string(0) “”
}
}
[“creditnames”]=>
array(5) {
[“credit1”]=>
array(2) {
[“title”]=>
string(6) “积分”
[“enabled”]=>
int(1)
}
[“credit2”]=>
array(2) {
[“title”]=>
string(6) “余额”
[“enabled”]=>
int(1)
}
[“credit3”]=>
array(2) {
[“title”]=>
string(0) “”
[“enabled”]=>
int(0)
}
[“credit4”]=>
array(2) {
[“title”]=>
string(0) “”
[“enabled”]=>
int(0)
}
[“credit5”]=>
array(2) {
[“title”]=>
string(0) “”
[“enabled”]=>
int(0)
}
}
[“creditbehaviors”]=>
array(2) {
[“activity”]=>
string(7) “credit1”
[“currency”]=>
string(7) “credit2”
}
[“welcome”]=>
string(0) “”
[“default”]=>
string(0) “”
[“shenhe”]=>
string(0) “”
[“default_message”]=>
string(0) “”
[“shortcuts”]=>
string(0) “”
[“payment”]=>
array(4) {
[“credit”]=>
array(1) {
[“switch”]=>
bool(false)
}
[“alipay”]=>
array(4) {
[“switch”]=>
bool(false)
[“account”]=>
string(0) “”
[“partner”]=>
string(0) “”
[“secret”]=>
string(0) “”
}
[“wechat”]=>
array(5) {
[“switch”]=>
bool(false)
[“account”]=>
bool(false)
[“signkey”]=>
string(0) “”
[“partner”]=>
string(0) “”
[“key”]=>
string(0) “”
}
[“delivery”]=>
array(1) {
[“switch”]=>
bool(false)
}
}
[“groupdata”]=>
string(77) “a:3:{s:8:”isexpire”;i:0;s:10:”oldgroupid”;s:0:””;s:7:”endtime”;i:1410364919;}”
[“stat”]=>
string(0) “”
[“bootstrap”]=>
string(0) “”
[“menuset”]=>
string(0) “”
[“default_site”]=>
string(1) “1”
[“sync”]=>
string(1) “0”
[“jsauth_acid”]=>
string(1) “0”
[“recharge”]=>
string(0) “”
[“tplnotice”]=>
string(0) “”
[“grouplevel”]=>
string(1) “0”
[“mcplugin”]=>
string(0) “”
[“msg”]=>
string(0) “”
[“print”]=>
string(0) “”
[“statistics”]=>
string(0) “”
[“exchange_enable”]=>
string(1) “0”
[“coupon_type”]=>
string(1) “0”
[“bind_domain”]=>
string(0) “”
[“tid”]=>
string(1) “0”
}
[“grouplevel”]=>
string(1) “0”
[“logo”]=>
string(71) “https://newshop.gouwanmei.wang/attachment/headimg_1.jpg?time=1530235482”
[“qrcode”]=>
string(70) “https://newshop.gouwanmei.wang/attachment/qrcode_1.jpg?time=1530235482”
[“switchurl”]=>
string(51) “./index.php?c=account&a=display&do=switch&uniacid=1”
[“sms”]=>
int(0)
[“setmeal”]=>
array(5) {
[“uid”]=>
int(-1)
[“username”]=>
string(9) “创始人”
[“timelimit”]=>
string(9) “未设置”
[“groupid”]=>
string(2) “-1”
[“groupname”]=>
string(12) “所有服务”
}
}
[“acid”]=>
string(1) “1”
[“session_id”]=>
string(32) “6788bf41649108763179a1290be95eb8”
[“openid”]=>
string(28) “ofmtts8CFm2sde4miT5VX6IXuXpE”
[“fans”]=>
array(19) {
[“fanid”]=>
string(2) “15”
[“acid”]=>
string(1) “1”
[“uniacid”]=>
string(1) “1”
[“uid”]=>
string(2) “15”
[“openid”]=>
string(28) “ofmtts8CFm2sde4miT5VX6IXuXpE”
[“salt”]=>
string(8) “ODnska4n”
[“follow”]=>
string(1) “1”
[“followtime”]=>
string(10) “1539221192”
[“unfollowtime”]=>
string(1) “0”
[“tag”]=>
array(16) {
[“subscribe”]=>
int(1)
[“openid”]=>
string(28) “ofmtts8CFm2sde4miT5VX6IXuXpE”
[“nickname”]=>
string(9) “王守卫”
[“sex”]=>
int(1)
[“language”]=>
string(5) “zh_CN”
[“city”]=>
string(6) “济宁”
[“province”]=>
string(6) “山东”
[“country”]=>
string(6) “中国”
[“subscribe_time”]=>
int(1539221192)
[“remark”]=>
string(0) “”
[“groupid”]=>
int(0)
[“tagid_list”]=>
array(0) {
}
[“subscribe_scene”]=>
string(16) “ADD_SCENE_SEARCH”
[“qr_scene”]=>
int(0)
[“qr_scene_str”]=>
string(0) “”
[“avatar”]=>
string(134) “http://thirdwx.qlogo.cn/mmopen/URsHyQdar4OL5J8ic9pkh98ZoLjW07vd3YaTAs6aN8uA9UibDstLHolL1RT9myM2icFnlMZOyNGNF86Sj7EV1YpWPaEbrRomVeT/132”
}
[“nickname”]=>
string(9) “王守卫”
[“groupid”]=>
string(0) “”
[“updatetime”]=>
string(10) “1539575092”
[“unionid”]=>
string(0) “”
[“sex”]=>
int(1)
[“gender”]=>
int(1)
[“headimgurl”]=>
string(134) “http://thirdwx.qlogo.cn/mmopen/URsHyQdar4OL5J8ic9pkh98ZoLjW07vd3YaTAs6aN8uA9UibDstLHolL1RT9myM2icFnlMZOyNGNF86Sj7EV1YpWPaEbrRomVeT/132”
[“avatar”]=>
string(134) “http://thirdwx.qlogo.cn/mmopen/URsHyQdar4OL5J8ic9pkh98ZoLjW07vd3YaTAs6aN8uA9UibDstLHolL1RT9myM2icFnlMZOyNGNF86Sj7EV1YpWPaEbrRomVeT/132”
[“from_user”]=>
string(28) “ofmtts8CFm2sde4miT5VX6IXuXpE”
}
[“member”]=>
array(9) {
[“uid”]=>
string(2) “15”
[“realname”]=>
string(0) “”
[“mobile”]=>
string(0) “”
[“email”]=>
string(46) “98b68fd3d129b7a82f857faaf441080d@weizancms.com”
[“groupid”]=>
string(1) “1”
[“credit1”]=>
string(4) “0.00”
[“credit2”]=>
string(4) “0.00”
[“credit6”]=>
string(4) “0.00”
[“groupname”]=>
string(15) “默认会员组”
}
[“oauth_account”]=>
array(5) {
[“key”]=>
string(18) “wx2d826f8fba2f2971”
[“secret”]=>
string(32) “62002e6ad0152ab10910082860c04781”
[“acid”]=>
string(1) “1”
[“type”]=>
string(1) “1”
[“level”]=>
string(1) “4”
}
[“token”]=>
string(4) “t85x”
[“attachurl_local”]=>
string(41) “http://newshop.gouwanmei.wang/attachment/”
[“attachurl”]=>
string(41) “http://newshop.gouwanmei.wang/attachment/”
[“weid”]=>
int(1)
[“template”]=>
string(7) “default”
[“styles”]=>
array(0) {
}
[“page”]=>
array(1) {
[“title”]=>
NULL
}
[“current_module”]=>
array(35) {
[“mid”]=>
string(2) “16”
[“name”]=>
string(9) “we7_wmall”
[“type”]=>
string(8) “business”
[“title”]=>
string(18) “啦啦外卖跑腿”
[“version”]=>
string(6) “13.9.0”
[“ability”]=>
string(18) “啦啦外卖跑腿”
[“description”]=>
string(18) “啦啦外卖跑腿”
[“author”]=>
string(12) “微信魔方”
[“url”]=>
string(24) “http://mofang.52jscn.com”
[“settings”]=>
string(1) “0”
[“subscribes”]=>
array(0) {
}
[“handles”]=>
array(1) {
[0]=>
string(4) “text”
}
[“isrulefields”]=>
string(1) “0”
[“issystem”]=>
string(1) “0”
[“issolution”]=>
string(1) “0”
[“target”]=>
string(1) “0”
[“iscard”]=>
string(1) “1”
[“permissions”]=>
string(2) “N;”
[“price”]=>
string(4) “0.00”
[“isbuy”]=>
string(1) “0”
[“title_initial”]=>
string(1) “L”
[“wxapp_support”]=>
string(1) “1”
[“app_support”]=>
string(1) “2”
[“template_id”]=>
string(1) “0”
[“item_list”]=>
string(0) “”
[“id”]=>
NULL
[“modulename”]=>
NULL
[“isdisplay”]=>
int(1)
[“logo”]=>
string(68) “http://newshop.gouwanmei.wang/addons/we7_wmall/icon.jpg?v=1539065422”
[“main_module”]=>
bool(false)
[“plugin_list”]=>
array(0) {
}
[“is_relation”]=>
bool(false)
[“config”]=>
array(0) {
}
[“enabled”]=>
int(1)
[“shortcut”]=>
NULL
}
[“_do”]=>
string(6) “mobile”
[“_controller”]=>
string(5) “wmall”
[“_action”]=>
string(4) “home”
[“_op”]=>
string(5) “index”
[“_ta”]=>
string(0) “”
[“_router”]=>
string(16) “wmall/home/index”
[“channel”]=>
string(6) “wechat”
[“we7_wmall”]=>
array(2) {
[“global”]=>
array(1) {
[“wxapp”]=>
NULL
}
[“config”]=>
array(4) {
[“wxapp”]=>
array(0) {
}
[“store”]=>
array(1) {
[“settle”]=>
array(4) {
[“status”]=>
int(1)
[“audit_status”]=>
int(1)
[“mobile_verify_status”]=>
int(2)
[“store_label_new”]=>
int(0)
}
}
[“delivery”]=>
array(1) {
[“settle”]=>
array(2) {
[“mobile_verify_status”]=>
int(2)
[“idCard”]=>
int(2)
}
}
[“paycallback”]=>
array(1) {
[“notify_use_http”]=>
int(0)
}
}
}
[“is_agent”]=>
int(0)
[“agentid”]=>
int(0)
[“mobile_tpl”]=>
string(7) “default”
[“role”]=>
string(8) “consumer”
[“role_cn”]=>
string(12) “下单顾客”
}
## **请求接口的方式**
接口页面
‘xiaoli’,’age’=>18];
$params = array(
‘tid’ => 44444444444555, //充值模块中的订单号,此号码用于业务模块中区分订单,交易的识别码
‘ordersn’ => ‘sdfsdfsdfsdf’, //收银台中显示的订单号
‘title’ => 100, //收银台中显示的标题
‘fee’ => 100, //收银台中显示需要支付的金额,只能大于 0
‘user’ => 2345, //付款用户, 付款的用户名(选填项)
);
message($params, ”, ‘ajax’);
请求接口的页面
php页面
{itemplate ‘public/footer’}
遍历json对象
for (var key in response.message) {
console.log(key+’:’+response.message[key]);
/* 输出tid:44444444444555 ordersn:sdfsdfsdfsdf
title:100
fee:100
user:2345*/
}
var_dump($_W[‘deliveryer’])打印如下
array(40) {
[“id”]=>
string(1) “1”
[“uniacid”]=>
string(1) “1”
[“title”]=>
string(9) “王守卫”
[“nickname”]=>
string(9) “王守卫”
[“openid”]=>
string(28) “ofmtts8CFm2sde4miT5VX6IXuXpE”
[“avatar”]=>
string(134) “http://thirdwx.qlogo.cn/mmopen/URsHyQdar4OL5J8ic9pkh98ZoLjW07vd3YaTAs6aN8uA9UibDstLHolL1RT9myM2icFnlMZOyNGNF86Sj7EV1YpWPaEbrRomVeT/132”
[“mobile”]=>
string(11) “17625353140”
[“password”]=>
string(32) “93ff4fbdc86fbc573ca29740f07d8363”
[“salt”]=>
string(6) “xrrApd”
[“sex”]=>
string(3) “男”
[“age”]=>
string(2) “27”
[“addtime”]=>
string(10) “1539236175”
[“credit1”]=>
string(4) “0.00”
[“credit2”]=>
string(4) “0.00”
[“agentid”]=>
string(1) “0”
[“groupid”]=>
string(1) “0”
[“token”]=>
string(32) “gCMoCXdlRooLAjCVOXA7ZorEyXcYAXDR”
[“work_status”]=>
string(1) “1”
[“is_takeout”]=>
string(1) “1”
[“is_errander”]=>
string(1) “0”
[“auth_info”]=>
string(0) “”
[“location_x”]=>
string(0) “”
[“location_y”]=>
string(0) “”
[“order_takeout_num”]=>
string(1) “0”
[“order_errander_num”]=>
string(1) “0”
[“extra”]=>
array(2) {
[“accept_wechat_notice”]=>
int(1)
[“accept_voice_notice”]=>
int(1)
}
[“openid_wxapp”]=>
string(0) “”
[“registration_id”]=>
string(0) “”
[“collect_max_takeout”]=>
string(1) “0”
[“collect_max_errander”]=>
string(1) “0”
[“perm_transfer”]=>
array(0) {
}
[“perm_cancel”]=>
array(0) {
}
[“fee_delivery”]=>
array(0) {
}
[“fee_getcash”]=>
array(5) {
[“get_cash_fee_limit”]=>
int(1)
[“get_cash_fee_rate”]=>
int(0)
[“get_cash_fee_min”]=>
int(0)
[“get_cash_fee_max”]=>
int(0)
[“get_cash_period”]=>
int(0)
}
[“work_status_cn”]=>
string(9) “接单中”
[“sids”]=>
array(1) {
[0]=>
int(4)
}
[“sids_sn”]=>
string(1) “4”
[“perm_takeout”]=>
int(3)
[“perm_errander”]=>
string(1) “0”
[“perm_plateform”]=>
bool(true)
}
## 微擎啦啦外卖跑腿数据库字典
ims_tiny_wmall_order表
cid 公众号表主键
sid 商店表id主键
uniacid 所属公众号
openid 一个粉丝用户(使用OpenID表示)
delivery_status 3:待配送, 4:配送中, 5: 配送成功, 6: 配送失败
location_x 维度 location_y 经度
pay_type 支付方式 delivery货到付款 credit余额付款 alipay支付宝付款 wechat微信付款 peerpay代付款
addtime 下单时间
paytime 支付时间
data a:3:{s:9:”extra_fee”;a:0:{}s:4:”cart”;a:1:{i:5;a:3:{s:8:”goods_id”;s:1:”5″;s:5:”title”;s:12:”里脊肉饼”;s:7:”options”;a:1:{i:0;a:7:{s:9:”option_id”;s:1:”0″;s:4:”name”;s:0:””;s:3:”num”;i:2;s:9:”price_num”;i:1;s:12:”discount_num”;i:1;s:10:”bargain_id”;s:1:”1″;s:11:”price_total”;s:6:”100.01″;}}}}s:10:”commission”;a:4:{s:12:”spread1_rate”;s:2:”0%”;s:7:”spread1″;i:0;s:12:”spread2_rate”;s:2:”0%”;s:7:”spread2″;i:0;}}
参考资料
微擎(微赞)学习之 — 模块开发:目录结构 https://blog.csdn.net/qq_32737755/article/details/77863679
微擎模块开发视频:https://pan.baidu.com/s/11sM6EX6pwGYrN9o79hqN3Q 密码:93an
微擎模块开发教程视频大全 www.fzl7.com/vqakfck/
链接:https://pan.baidu.com/s/1VkDrAawLXL0V5ZN6bny26Q 密码:y3kq
解压密码 laibawuye,压缩包里忘了放了,解压密码是为了防和谐用的
另外之前我好像说过要发教程来着
微擎基础教程+人人商城详细教程↓↓↓
链接:https://pan.baidu.com/s/1kHe66L3kDyCB9OjFy54R6g 密码:xx3i
这回绝逼挂不了了,我双重压缩还加密的,密码也是 laibawuye,来吧午夜