소스 검색

获取门店信息(根绝tableName)

Panda 2 주 전
부모
커밋
8d175df3f3
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      application/common/business/PaymentBusiness.php

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

@@ -39,6 +39,17 @@ class PaymentBusiness extends BusinessResult
     public function __construct() {}
 
     /**
+     * 获取门店信息(根绝tableName)
+     * @param string $tableName
+     * @param int $shopId
+     * @return array|bool|\PDOStatement|string|\think\Model|null
+     */
+    public function getShopInfo(string $tableName,int $shopId)
+    {
+        return Db::name($tableName)->where(['shop_id' => $shopId])->find();
+    }
+
+    /**
      * 订单成交
      * @param int $bill_id
      * @param string $third_no