Pārlūkot izejas kodu

获取门店信息(根绝tableName)

Panda 2 nedēļas atpakaļ
vecāks
revīzija
c8f4b54037
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      application/common/business/PaymentBusiness.php

+ 1 - 0
application/common/business/PaymentBusiness.php

@@ -46,6 +46,7 @@ class PaymentBusiness extends BusinessResult
      */
     public function getShopInfo(string $tableName,int $shopId)
     {
+        $tableName = self::ORDER_SHOP[$tableName];
         return Db::name($tableName)->where(['shop_id' => $shopId])->find();
     }