站点工具

New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
Hotfix release available: 2018-04-22a "Greebo". upgrade now! [50.1] (what's this?)
New release available: 2018-04-22 "Greebo". upgrade now! [50] (what's this?)
Hotfix release available: 2017-02-19g "Frusterick Manners". upgrade now! [49.7] (what's this?)
Hotfix release available: 2017-02-19f "Frusterick Manners". upgrade now! [49.6] (what's this?)
Hotfix release available: 2017-02-19e "Frusterick Manners". upgrade now! [49.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2017-02-19d "Frusterick Manners". upgrade now! [49.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2017-02-19c "Frusterick Manners". upgrade now! [49.3] (what's this?)
Hotfix release available fixing security token and media manager: 2017-02-19b "Frusterick Manners". upgrade now! [49.2] (what's this?)
Hotfix release available fixing install and media manager issues: 2017-02-19a "Frusterick Manners". upgrade now! [49.1] (what's this?)
New release available: 2017-02-19 "Frusterick Manners". upgrade now! [49] (what's this?)
Hotfix release available: 2016-06-26e "Elenor of Tsort". upgrade now! [48.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2016-06-26d "Elenor of Tsort". upgrade now! [48.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2016-06-26c "Elenor of Tsort". upgrade now! [48.3] (what's this?)
Hotfix release available fixing security token: 2016-06-26b "Elenor of Tsort". upgrade now! [48.2] (what's this?)
Hotfix release available fixing authad issues: 2016-06-26a "Elenor of Tsort". upgrade now! [48.1] (what's this?)
New release available: 2016-06-26 "Elenor of Tsort". upgrade now! [48] (what's this?)
Hotfix release available: 2015-08-10a "Detritus". upgrade now! [47.1] (what's this?)
New release available: 2015-08-10 "Detritus". upgrade now! [47] (what's this?)
Hotfix release available: 2014-09-29d "Hrun". upgrade now! [46.4] (what's this?)
Hotfix release available: 2014-09-29c "Hrun". upgrade now! [46.3] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-09-29b "Hrun". upgrade now! [46.2] (what's this?)
Hotfix release available: 2014-09-29a "Hrun". upgrade now! [46.1] (what's this?)
New release available: 2014-09-29 "Hrun". upgrade now! [46] (what's this?)
Hotfix release available: 2014-05-05e "Ponder Stibbons". upgrade now! [44.5] (what's this?)
Hotfix release available: 2014-05-05d "Ponder Stibbons". upgrade now! [44.4] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-05-05c "Ponder Stibbons". upgrade now! [44.3] (what's this?)
Security Hotfix 2014-05-05b to prevent zero byte attacks on external auth systems is available. upgrade now! [44.2] (what's this?)
Security Hotfix 2014-05-05a for Issue 765 available. upgrade now! [44.1] (what's this?)

seller_ship

商家自行发货程序流程

1、订单按照子订单,拆分给商家

用户对订单付款后,以下daemon程序会获取到订单,并对订单进行拆分:

/usr/bin/nohup /Data/apps/php/bin/php /Data/webapps/m.repai.com/m/index.php dm_order order_payment_queue_dispose 1 >> /Data/logs/order_payment_queue_dispose.log 2>&1 &

2、根据rp_uid查询商家自己的子订单

如果店铺旺旺昵称,有对应的热拍rp_uid,默认为热拍店铺自发货子订单,通过config.php中的以下bigsea地址用listget查询订单:

$GLOBALS["bigsea_uri"]["55532"]["list"]["pay_total_payment_seller"]
  • 单个商家的订单列表,后接商家rp_uid,listid为订单号,value为子订单号(-号之后的数字)
  • 示例:

http://bigsea.api.repaiapp.com:55532/pay/total/payment/records/seller/37?opt=listget

{
"count":	2,
"data":	[{
		"listid":	"141751940948148",
		"value":	"1"
	}, {
		"listid":	"141751976114691",
		"value":	"1"
	}]
}
  • listid为主订单号,value为子订单号

3、根据主订单号查询订单详情

对商家展示发货列表时,只显示改商家所属的子订单信息,通过config.php中的以下bigsea地址get查询订单::

$GLOBALS["bigsea_uri"]["55532"]["kv"]["pay_order_info"]
  • 示例:

http://bigsea.api.repaiapp.com:55532/pay/order/info/141751976114691

{
"address": "北京北京市朝阳区建外大街南朗家园17号楼1层107室",
"alipay_trade_no": "2014120267901969",
"city": "110100",
"district": "110105",
"is_payment": 1,
"items": {
	"1": {
		"97fd829f1bd9d5961f9283881819ba2e": {
			"discount": 0,
			"huodong_price": 0,
			"nick": "闪购专家",
			"rp_iid": "1100063036226350",
			"rp_old_price": 7.9,
			"rp_pic_url": "http://gw.alicdn.com/bao/uploaded/i1/13003030735343041/T1j1slFkRfXXXXXXXX_!!2-item_pic.png_320x320q90.jpg",
			"rp_price": 0.01,
			"rp_quantity": 1,
			"rp_sku1": "36",
			"rp_sku2": "浅黄色",
			"rp_title": "恋洋正品 拖鞋 冬季居家棉拖鞋男女可爱家居拖鞋居家情侣地板拖鞋",
			"rp_uid": "1",
			"rp_weibo_uid": null,
			"shop_name": "热拍"
		}
	}
},
"orderid": "141751976114691",
"pay_gateway": 2,
"phone": "15901283960",
"province": "110000",
"real_name": "张宴",
"remark": "测试,不用拍",
"rp_uid": "1",
"rp_unionid": 0,
"rp_weibo_uid": "",
"rp_weixin_uid": "",
"rpunid": "",
"total_price": "0.01"
}
  • 如果子订单号为1,那么只显示items下为1的商品列表。商品总价不按照total_price显示,而是按照第1件商品的rp_price*rp_quantity加第N件商品的rp_price*rp_quantity获得的总价显示。

4、编辑的代拍后台显示

如果是商家自己发货的商品,在代拍后台,需要标记显示出来。可以通过config.php中的以下bigsea地址get查询订单,通过“订单号-子订单号”查询是否为商家自己发货商品:

$GLOBALS["bigsea_uri"]["55532"]["kv"]["pay_total_order_isself"]
  • 示例:

http://bigsea.api.repaiapp.com:55532/pay/total/order/shop/isself/141751976114691-1

如果返回数值,则返回的数值为rp_uid,代表是商家自己发货子订单;如果返回为空,则是需要编辑代拍自订单。

5、商家发货后处理

商家发货后,需要对应更改订单状态,并将快递单号填入。

返回首页

seller_ship.txt · 最后更改: 2014/12/02 19:53 由 123.126.29.78