mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-10-11 19:22:11 +08:00
修改文件注释及商城订单表
This commit is contained in:
parent
4ff1ba0290
commit
00a6a146d0
@ -10,7 +10,7 @@ use think\exception\HttpResponseException;
|
|||||||
/**
|
/**
|
||||||
* 接口授权认证基类
|
* 接口授权认证基类
|
||||||
* Class Auth
|
* Class Auth
|
||||||
* @package app\store\controller\api
|
* @package app\data\controller\api
|
||||||
*/
|
*/
|
||||||
abstract class Auth extends Controller
|
abstract class Auth extends Controller
|
||||||
{
|
{
|
||||||
|
@ -82,7 +82,7 @@ class Order extends Auth
|
|||||||
// 限制购买数量
|
// 限制购买数量
|
||||||
if (isset($goods['limit_max_num']) && $goods['limit_max_num'] > 0) {
|
if (isset($goods['limit_max_num']) && $goods['limit_max_num'] > 0) {
|
||||||
$map = [['a.uuid', '=', $this->uuid], ['a.status', 'in', [2, 3, 4, 5]], ['b.goods_code', '=', $goods['code']]];
|
$map = [['a.uuid', '=', $this->uuid], ['a.status', 'in', [2, 3, 4, 5]], ['b.goods_code', '=', $goods['code']]];
|
||||||
$buys = $this->app->db->name('StoreOrder')->alias('a')->join('store_order_item b', 'a.order_no=b.order_no')->where($map)->sum('b.stock_sales');
|
$buys = $this->app->db->name('DataOrder')->alias('a')->join('store_order_item b', 'a.order_no=b.order_no')->where($map)->sum('b.stock_sales');
|
||||||
if ($buys + $count > $goods['limit_max_num']) $this->error('超过限购数量');
|
if ($buys + $count > $goods['limit_max_num']) $this->error('超过限购数量');
|
||||||
}
|
}
|
||||||
// 限制购买身份
|
// 限制购买身份
|
||||||
|
@ -9,7 +9,7 @@ use think\db\exception\DbException;
|
|||||||
/**
|
/**
|
||||||
* 用户数据管理服务
|
* 用户数据管理服务
|
||||||
* Class UserAdminService
|
* Class UserAdminService
|
||||||
* @package app\store\service
|
* @package app\data\service
|
||||||
*/
|
*/
|
||||||
class UserAdminService extends Service
|
class UserAdminService extends Service
|
||||||
{
|
{
|
||||||
|
@ -8,7 +8,7 @@ use think\admin\Exception;
|
|||||||
/**
|
/**
|
||||||
* 支付宝支付基础服务
|
* 支付宝支付基础服务
|
||||||
* Class AlipayPaymentService
|
* Class AlipayPaymentService
|
||||||
* @package app\store\service\payment
|
* @package app\data\service\payment
|
||||||
*/
|
*/
|
||||||
class AlipayPaymentService extends PaymentService
|
class AlipayPaymentService extends PaymentService
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,7 @@ use think\admin\extend\HttpExtend;
|
|||||||
/**
|
/**
|
||||||
* 汇聚支付基础服务
|
* 汇聚支付基础服务
|
||||||
* Class JoinpayPaymentService
|
* Class JoinpayPaymentService
|
||||||
* @package app\store\service\payment
|
* @package app\data\service\payment
|
||||||
*/
|
*/
|
||||||
class JoinpayPaymentService extends PaymentService
|
class JoinpayPaymentService extends PaymentService
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,7 @@ use WePay\Order;
|
|||||||
/**
|
/**
|
||||||
* 微信官方公众号支持
|
* 微信官方公众号支持
|
||||||
* Class WechatPaymentService
|
* Class WechatPaymentService
|
||||||
* @package app\store\service\payment
|
* @package app\data\service\payment
|
||||||
*/
|
*/
|
||||||
class WechatPaymentService extends PaymentService
|
class WechatPaymentService extends PaymentService
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user