|
@@ -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
|