Commit 8c29a65f authored by 734642908@qq.com's avatar 734642908@qq.com

添加收获地址信息

parent eb35367f
...@@ -14,6 +14,16 @@ class ShopModel extends BaseModel ...@@ -14,6 +14,16 @@ class ShopModel extends BaseModel
,'msg'=>'goods_id参数错误' ,'msg'=>'goods_id参数错误'
); );
} }
//查询收获信息
$addressArr = M("game_member_address","",$this->__lewan_hezi)->where(array('uid'=>$uid,'game_code'=>'ylc'))->find();
if(empty($addressArr)) {
return $result = array(
'c'=>2
,'msg'=>'请先填写收获信息'
);
}
//判断兑换方式 //判断兑换方式
if($changeWay == 1) { if($changeWay == 1) {
//直接金币兑换 //直接金币兑换
...@@ -65,6 +75,9 @@ class ShopModel extends BaseModel ...@@ -65,6 +75,9 @@ class ShopModel extends BaseModel
,'game_code'=>'ylc' ,'game_code'=>'ylc'
,'change_way'=>1 ,'change_way'=>1
,'goods_type'=>$goodsArr['type'] ,'goods_type'=>$goodsArr['type']
,'consignee'=>$addressArr['consignee']
,'phone'=>$addressArr['phone']
,'address'=>$addressArr['address']
); );
$re3 = M("yl_goods_order","",$this->__lewan_hezi)->add($orderArr); $re3 = M("yl_goods_order","",$this->__lewan_hezi)->add($orderArr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment