@@ -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
{
@@ -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('超过限购数量');
}
// 限制购买身份
@@ -9,7 +9,7 @@ use think\db\exception\DbException;
* 用户数据管理服务
* Class UserAdminService
- * @package app\store\service
+ * @package app\data\service
class UserAdminService extends Service
@@ -8,7 +8,7 @@ use think\admin\Exception;
* 支付宝支付基础服务
* Class AlipayPaymentService
- * @package app\store\service\payment
+ * @package app\data\service\payment
class AlipayPaymentService extends PaymentService
@@ -9,7 +9,7 @@ use think\admin\extend\HttpExtend;
* 汇聚支付基础服务
* Class JoinpayPaymentService
class JoinpayPaymentService extends PaymentService
@@ -9,7 +9,7 @@ use WePay\Order;
* 微信官方公众号支持
* Class WechatPaymentService
class WechatPaymentService extends PaymentService