修改文件注释及商城订单表

This commit is contained in:
邹景立 2021-07-07 19:00:43 +08:00
parent 4ff1ba0290
commit 00a6a146d0
6 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ use think\exception\HttpResponseException;
/**
* 接口授权认证基类
* Class Auth
* @package app\store\controller\api
* @package app\data\controller\api
*/
abstract class Auth extends Controller
{

View File

@ -82,7 +82,7 @@ class Order extends Auth
// 限制购买数量
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']]];
$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('超过限购数量');
}
// 限制购买身份

View File

@ -9,7 +9,7 @@ use think\db\exception\DbException;
/**
* 用户数据管理服务
* Class UserAdminService
* @package app\store\service
* @package app\data\service
*/
class UserAdminService extends Service
{

View File

@ -8,7 +8,7 @@ use think\admin\Exception;
/**
* 支付宝支付基础服务
* Class AlipayPaymentService
* @package app\store\service\payment
* @package app\data\service\payment
*/
class AlipayPaymentService extends PaymentService
{

View File

@ -9,7 +9,7 @@ use think\admin\extend\HttpExtend;
/**
* 汇聚支付基础服务
* Class JoinpayPaymentService
* @package app\store\service\payment
* @package app\data\service\payment
*/
class JoinpayPaymentService extends PaymentService
{

View File

@ -9,7 +9,7 @@ use WePay\Order;
/**
* 微信官方公众号支持
* Class WechatPaymentService
* @package app\store\service\payment
* @package app\data\service\payment
*/
class WechatPaymentService extends PaymentService
{