|
|
@@ -14,6 +14,21 @@ class ShopExtClass extends BaseClass
|
|
|
|
|
|
public static $baseFile = '\biz\shop\models\ShopExt';
|
|
|
|
|
|
+ public static function orderUpdateRemind($shopExt, $order)
|
|
|
+ {
|
|
|
+ $sendNum = $order->sendNum ?? 0;
|
|
|
+ $sound = $sendNum . '号单已被修改';
|
|
|
+ if ($order->fromType == 4) {
|
|
|
+ $mtSn = $order->thirdSn ?? 0;
|
|
|
+ $sound = '美团' . $mtSn . '号单已被修改';
|
|
|
+ }
|
|
|
+ $lbSn = $order->fromType == 4 ? $shopExt->mtLbSn : $shopExt->makeLbSn;
|
|
|
+ $lbVersion = $order->fromType == 4 ? $shopExt->mtLbVersion : $shopExt->makeLbVersion;
|
|
|
+ $url = "https://speaker.17laimai.cn/notify.php?id={$lbSn}&token=HK1626595800&version={$lbVersion}&message=" . $sound;
|
|
|
+ $curl = new curl\Curl();
|
|
|
+ $curl->get($url);
|
|
|
+ }
|
|
|
+
|
|
|
public static function orderCancelRemind($shopExt, $order)
|
|
|
{
|
|
|
$sendNum = $order->sendNum ?? 0;
|