소스 검색

获取门店信息(根绝tableName)

Panda 2 주 전
부모
커밋
c8f4b54037
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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();
     }