|
|
@@ -19,13 +19,14 @@ class ShopExtClass extends BaseClass
|
|
|
public static function orderCancelRemind($shopExt, $order)
|
|
|
{
|
|
|
$lbSn = $order->fromType == 4 ? $shopExt->mtLbSn : $shopExt->makeLbSn;
|
|
|
+ $lbVersion = $order->fromType == 4 ? $shopExt->mtLbVersion : $shopExt->makeLbVersion;
|
|
|
$sendNum = $order->sendNum ?? 0;
|
|
|
$sound = $sendNum . '号单已被取消';
|
|
|
if ($order->fromType == 4) {
|
|
|
$mtSn = $order->thirdSn ?? 0;
|
|
|
$sound = '美团' . $mtSn . '号单已被取消';
|
|
|
}
|
|
|
- $url = "https://speaker.17laimai.cn/notify.php?id={$lbSn}&token=HK1626595800&version=3&message=" . $sound;
|
|
|
+ $url = "https://speaker.17laimai.cn/notify.php?id={$lbSn}&token=HK1626595800&version={$lbVersion}&message=" . $sound;
|
|
|
$curl = new curl\Curl();
|
|
|
$curl->get($url);
|
|
|
}
|
|
|
@@ -39,6 +40,7 @@ class ShopExtClass extends BaseClass
|
|
|
return false;
|
|
|
}
|
|
|
$lbSn = $order->fromType == 4 ? $shopExt->mtLbSn : $shopExt->makeLbSn;
|
|
|
+ $lbVersion = $order->fromType == 4 ? $shopExt->mtLbVersion : $shopExt->makeLbVersion;
|
|
|
$sound = "您有新的制作单";
|
|
|
$reachDate = $order->reachDate ?? '';
|
|
|
if ($order->sendType == 1) {
|
|
|
@@ -74,7 +76,7 @@ class ShopExtClass extends BaseClass
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- $url = "https://speaker.17laimai.cn/notify.php?id={$lbSn}&token=HK1626595800&version=3&message=" . $sound;
|
|
|
+ $url = "https://speaker.17laimai.cn/notify.php?id={$lbSn}&token=HK1626595800&version={$lbVersion}&message=" . $sound;
|
|
|
$curl = new curl\Curl();
|
|
|
$curl->get($url);
|
|
|
}
|
|
|
@@ -94,7 +96,7 @@ class ShopExtClass extends BaseClass
|
|
|
$actPrice = floatval($order->actPrice) ?? 0;
|
|
|
$payWay = $order->payWay ?? dict::getDict('payWay', 'wxPay');
|
|
|
$sound = $payWay == dict::getDict('payWay', 'wxPay') ? "微信收款{$actPrice}元" : "支付宝收款{$actPrice}元";
|
|
|
- $url = "https://speaker.17laimai.cn/notify.php?id={$shopExt->lbSn}&token=HK1626595800&version=3&message=" . $sound;
|
|
|
+ $url = "https://speaker.17laimai.cn/notify.php?id={$shopExt->lbSn}&token=HK1626595800&version={$shopExt->lbVersion}&message=" . $sound;
|
|
|
$curl = new curl\Curl();
|
|
|
$curl->get($url);
|
|
|
}
|
|
|
@@ -111,7 +113,7 @@ class ShopExtClass extends BaseClass
|
|
|
if (isset($shopExt->lbSn) && !empty($shopExt->lbSn)) {
|
|
|
$mainPay = $order->mainPay ? floatval($order->mainPay) : 0;
|
|
|
$sound = $mainPay . '元,请出示付款码';
|
|
|
- $url = "https://speaker.17laimai.cn/notify.php?id={$shopExt->lbSn}&token=HK1626595800&version=3&message=" . $sound;
|
|
|
+ $url = "https://speaker.17laimai.cn/notify.php?id={$shopExt->lbSn}&token=HK1626595800&version={$shopExt->lbVersion}&message=" . $sound;
|
|
|
$curl = new curl\Curl();
|
|
|
$curl->get($url);
|
|
|
}
|
|
|
@@ -138,7 +140,7 @@ class ShopExtClass extends BaseClass
|
|
|
$actPrice = $order->mainPay ? floatval($order->mainPay) : 0;
|
|
|
$payWay = $order->payWay ?? dict::getDict('payWay', 'wxPay');
|
|
|
$sound = $payWay == dict::getDict('payWay', 'wxPay') ? "微信收款{$actPrice}元" : "支付宝收款{$actPrice}元";
|
|
|
- $url = "https://speaker.17laimai.cn/notify.php?id={$shopExt->lbSn}&token=HK1626595800&version=3&message=" . $sound;
|
|
|
+ $url = "https://speaker.17laimai.cn/notify.php?id={$shopExt->lbSn}&token=HK1626595800&version={$shopExt->lbVersion}&message=" . $sound;
|
|
|
$curl = new curl\Curl();
|
|
|
$curl->get($url);
|
|
|
}
|