|
|
@@ -16,9 +16,9 @@ class NoticeClass extends BaseClass
|
|
|
//采购成功之后小程序通知
|
|
|
public static function cgSuccessMiniNotice($cgShop, $cg)
|
|
|
{
|
|
|
+ $result = [];
|
|
|
$mainId = $cgShop->mainId ?? 0;
|
|
|
$staffList = StaffClass::getAllByCondition(['mainId' => $mainId], null, 'adminId');
|
|
|
-
|
|
|
$merchant = WxOpenClass::getWxInfo();
|
|
|
$ptStyle = dict::getDict('ptStyle', 'hd');
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
@@ -27,7 +27,6 @@ class NoticeClass extends BaseClass
|
|
|
$msgList = dict::getDict('hdMiniMessageDev');
|
|
|
}
|
|
|
$msgId = $msgList['cgSuccess']['msgId'] ?? '';
|
|
|
- $result = [];
|
|
|
if (empty($msgId)) {
|
|
|
return $result;
|
|
|
}
|
|
|
@@ -43,13 +42,12 @@ class NoticeClass extends BaseClass
|
|
|
}
|
|
|
$name = "花材" . $num;
|
|
|
$actPrice = $cg->actPrice ?? 0;
|
|
|
+ $actPrice = "¥" . $actPrice;
|
|
|
$payTime = $cg->payTime ?? '';
|
|
|
$remark = "点击查看详情";
|
|
|
if (isset($cg->debt) && $cg->debt == 1) {
|
|
|
$remark = "===点击付款===";
|
|
|
- $actPrice = "【赊账】" . $actPrice . "元";
|
|
|
- } else {
|
|
|
- $actPrice = $actPrice . "元";
|
|
|
+ $actPrice = "【赊账】" . $actPrice;
|
|
|
}
|
|
|
if (!empty($staffList)) {
|
|
|
$ids = array_column($staffList, 'adminId');
|