mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 10:22:38 +08:00
小程序模式开发
This commit is contained in:
@ -70,6 +70,7 @@ class Buy extends Common
|
||||
'base' => $ret['data']['base'],
|
||||
'extension_data' => $ret['data']['extension_data'],
|
||||
'common_order_is_booking' => (int) MyC('common_order_is_booking', 0),
|
||||
'common_site_type' => (int) MyC('common_site_type', 0, true),
|
||||
|
||||
// 优惠劵
|
||||
'plugins_coupon_data' => CallPluginsServiceMethod('coupon', 'BaseService', 'BuyUserCouponData', ['order_goods'=>$ret['data']['goods'], 'coupon_id'=>$coupon_id]),
|
||||
|
||||
@ -129,8 +129,10 @@ class Goods extends Common
|
||||
'common_app_is_poster_share' => (int) MyC('common_app_is_poster_share'),
|
||||
'common_cart_total' => BuyService::UserCartTotal(['user'=>$this->user]),
|
||||
'customer_service_tel' => MyC('common_app_customer_service_tel', null, true),
|
||||
'common_is_exhibition_mode_btn_text'=> MyC('common_is_exhibition_mode_btn_text', null, true),
|
||||
'common_is_exhibition_mode' => (int) MyC('common_is_exhibition_mode', 0),
|
||||
|
||||
// 站点模式
|
||||
'common_site_type' => (int) MyC('common_site_type', 0, true),
|
||||
'common_is_exhibition_mode_btn_text'=> MyC('common_is_exhibition_mode_btn_text', '立即咨询', true),
|
||||
|
||||
// 优惠劵
|
||||
'plugins_coupon_data' => $this->PluginsCouponGoods($goods_id),
|
||||
|
||||
@ -13,6 +13,7 @@ namespace app\api\controller;
|
||||
use app\service\PaymentService;
|
||||
use app\service\OrderService;
|
||||
use app\service\GoodsCommentsService;
|
||||
use app\service\ConfigService;
|
||||
|
||||
/**
|
||||
* 我的订单
|
||||
@ -117,7 +118,15 @@ class Order extends Common
|
||||
$data = OrderService::OrderList($data_params);
|
||||
if(!empty($data['data'][0]))
|
||||
{
|
||||
return DataReturn('success', 0, $data['data'][0]);
|
||||
// 虚拟销售配置
|
||||
$site_fictitious = ConfigService::SiteFictitiousConfig();
|
||||
|
||||
// 返回信息
|
||||
$result = [
|
||||
'data' => $data['data'][0],
|
||||
'site_fictitious' => $site_fictitious['data'],
|
||||
];
|
||||
return DataReturn('success', 0, $result);
|
||||
}
|
||||
return DataReturn('数据不存在或已删除', -100);
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
namespace app\api\controller;
|
||||
|
||||
use app\service\UserService;
|
||||
use app\service\ConfigService;
|
||||
|
||||
/**
|
||||
* 用户地址
|
||||
@ -111,5 +112,18 @@ class UserAddress extends Common
|
||||
return UserService::UserAddressDefault($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 自提点地址列表
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2019-11-25
|
||||
* @desc description
|
||||
*/
|
||||
public function Extraction()
|
||||
{
|
||||
return ConfigService::SiteTypeExtractionAddressList();
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user