shish 6 лет назад
Родитель
Сommit
dec3022c8a

+ 0 - 67
biz/third/classes/TMessageClass.php

@@ -1,67 +0,0 @@
-<?php
-
-namespace biz\third\classes;
-
-use common\components\weixinUtil;
-use Yii;
-use biz\base\classes\BaseClass;
-
-class TMessageClass extends BaseClass
-{
-	
-	public static $baseFile = '\biz\third\models\TMessage';
-	//待处理的模板消息
-	const TMESSAGE_WAIT_FOR_DEAL = 'TMessage_wait_for_deal';
-	
-	//模板消息
-	public $tMessage = ['OPENTM207430125' => '操作成功通知',
-		'OPENTM401915538' => '审核通知',
-		'TM00006' => '充值通知',
-		'OPENTM201205968' => '订单送达通知',
-		'OPENTM207777535' => '付款提醒',
-		'OPENTM401761342' => '订单价格修改通知',
-		'OPENTM205211943' => '会员升级通知',
-		'TM00230' => '积分变动通知',
-		'OPENTM200605630' => '任务处理通知',
-		'OPENTM401027382' => '课程报名成功',
-		'OPENTM207422813' => '收入提醒',
-		'OPENTM202297555' => '下单成功通知',
-		'OPENTM207327227' => '宝贝售出提醒',
-		'OPENTM207188526' => '付款成功',
-		'TM00575' => '报名成功通知',
-		'OPENTM201319876' => '结算通知',];
-	
-	//商品售出提醒 shish
-	public static function treasureSold($user)
-	{
-		if (!empty($user['subscribe'])) {
-			$tmData = ["touser" => $adminOpenId, "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"]]];
-			weixinUtil::sendTaskInform($tmData, $merchant);
-			return true;
-		}
-		
-	}
-	
-	//收入提醒 shish
-	public static function imcomeRemind($user)
-	{
-		if (!empty($user['subscribe'])) {
-			$data = ["touser" => $adminOpenId, "template_id" => $tempId,
-				"url" => Yii::$app->params['adminUrl'] . '/order/detail?id=' . $orderId, "data" => [
-					"first" => ["value" => $userName . $payWay . '付款', "color" => "#173177"],
-					"keyword1" => ["value" => $totalFee . '元', "color" => "#173177"],
-					"keyword2" => ["value" => '客户付款', "color" => "#173177"],
-					"keyword3" => ["value" => date("Y-m-d H:i"), "color" => "#173177"],
-					"remark" => ["value" => "点击查看明细", "color" => "#173177"]]];
-			weixinUtil::sendTaskInform($data, $merchant);
-		}
-	}
-	
-}

+ 0 - 13
biz/third/models/TMessage.php

@@ -1,13 +0,0 @@
-<?php
-namespace biz\third\models;
-use biz\base\models\Base;
-
-class TMessage extends Base
-{
-
-	public static function tableName()
-	{
-		return 'xhTMessage';
-	}
-
-}

+ 0 - 24
biz/third/services/TMessageService.php

@@ -1,24 +0,0 @@
-<?php
-
-namespace biz\third\services;
-
-use biz\base\services\BaseService;
-use biz\third\classes\TMessageClass;
-use common\components\weixinUtil;
-use Yii;
-use linslin\yii2\curl;
-
-class UserService extends BaseService
-{
-	
-	public static $baseFile = '\biz\third\classes\TMessageClass';
-
-	public static function dealTMessageFromCache($message)
-	{
-		$messageArray = json_decode($message,true);
-		if(is_array($messageArray) == false){
-			return false;
-		}
-	}
-
-}