| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace biz\message\classes;
- use Yii;
- use biz\base\classes\BaseClass;
- class InformAdminClass extends BaseClass
- {
-
- public static $baseFile = '\biz\message\models\InformAdmin';
-
-
- //宝贝售出通知 shish 2019.12.24
- public static function goodsSoldInformAdmin($params, $informWay = 0, $TMList = [])
- {
- if ($informWay == 0) {
- //收入提醒
- $shortTempId = 'OPENTM207422813';
- $tempId = isset($TMList[$shortTempId]) ? $TMList[$shortTempId] : '';
- $tmData = ["touser" => $openId, "template_id" => $tempId, "url" => Yii::$app->params['adminUrl'] . '/order/detail?id=' . $orderId, "data" => [
- "first" => ["value" => '您有宝贝售出哦!', "color" => "#173177"],
- "keyword1" => ["value" => (string)$orderId, "color" => "#173177"],
- "keyword2" => ["value" => $orderName, "color" => "#173177"],
- "keyword3" => ["value" => number_format($totalFee, 2) . '元', "color" => "#173177"],
- "keyword4" => ["value" => number_format($totalFee, 2) . '元', "color" => "#173177"],
- "keyword5" => ["value" => $userName, "color" => "#173177"],
- "remark" => ["value" => '点此查看详细、编辑收花人信息。', "color" => "#173177"]]];
- return $tmData;
- } else {
- return "客户" . $userName . "付款" . $totalFee . '元';
- }
- }
- //宝贝售出通知 shish 2019.12.24
- public static function inform($params, $type, $informWay = 0, $TMList = [])
- {
- switch ($type) {
- case 'goodsSoldInformAdmin':
- $respond = self::goodsSoldInformAdmin($params, $informWay, $TMList);
- break;
- default:
- }
- return $respond;
- }
- }
|