|
|
@@ -265,6 +265,20 @@ class ShopExtClass extends BaseClass
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //供货商收银台 ssh 20230421
|
|
|
+ public static function ghsPleasePayReport($order)
|
|
|
+ {
|
|
|
+ $shopId = $order->shopId ?? 0;
|
|
|
+ $shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true);
|
|
|
+ if (isset($shopExt->lbSn) && !empty($shopExt->lbSn)) {
|
|
|
+ $mainPay = $order->actPrice ? floatval($order->actPrice) : 0;
|
|
|
+ $sound = $mainPay . '元,请出示付款码';
|
|
|
+ $url = "https://speaker.17laimai.cn/notify.php?id={$shopExt->lbSn}&token=HK1626595800&version={$shopExt->lbVersion}&message=" . $sound;
|
|
|
+ $curl = new curl\Curl();
|
|
|
+ $curl->get($url);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//零售花店收款声音播放 ssh 20220423
|
|
|
public static function hdGatheringReport($order)
|
|
|
{
|