|
|
@@ -82,16 +82,8 @@ class ShopExtClass extends BaseClass
|
|
|
$shopId = $order->shopId ?? 0;
|
|
|
$shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true);
|
|
|
if (isset($shopExt->lbSn) && !empty($shopExt->lbSn)) {
|
|
|
- $actPrice = $order->actPrice ? floatval($order->actPrice) : 0;
|
|
|
- $sound = '总计' . $actPrice . '元,请出示付款码';
|
|
|
-
|
|
|
$mainPay = $order->mainPay ? floatval($order->mainPay) : 0;
|
|
|
- $cash = $order->cash ?? 0;
|
|
|
- $cash = floatval($cash);
|
|
|
- if ($actPrice > $mainPay) {
|
|
|
- $sound = '总计' . $actPrice . '元,现金付' . $cash . '元,还需付' . $mainPay . '元,请出示付款码';
|
|
|
- }
|
|
|
-
|
|
|
+ $sound = '应付' . $mainPay . '元,请出示付款码';
|
|
|
$url = "https://speaker.17laimai.cn/notify.php?id={$shopExt->lbSn}&token=HK1626595800&version=3&message=" . $sound;
|
|
|
$curl = new curl\Curl();
|
|
|
$curl->get($url);
|