فهرست منبع

充值成功提示

shish 6 سال پیش
والد
کامیت
2f93364249
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      common/services/xhUserAssetService.php

+ 4 - 4
common/services/xhUserAssetService.php

@@ -136,12 +136,12 @@ class xhUserAssetService
 					wxUtil::sendTaskInform($changeData, $merchant);
 				}
 				break;
-			case $typeList['xhRecharge']['id']://现金充值
+			case $typeList['xhRecharge']['id']:
 				$totalBalance = isset($upAssetData['balance']) ? $upAssetData['balance'] : 0;
 				$rechargeAmount = $order['amount'];
 				$url = Yii::$app->params['mallDomain'] . "/#/pages/home/user?account=" . $merchant['id'];
 				$remark = '您当前帐户余额:' . $totalBalance . '元';
-				$shortTempId = 'TM00006';//充值成功通知用户
+				$shortTempId = 'TM00006';
 				$tempId = isset($allTM[$shortTempId]) ? $allTM[$shortTempId] : 0;
 				if (!empty($tempId)) {
 					$data = [
@@ -149,12 +149,12 @@ class xhUserAssetService
 						"template_id" => $tempId,
 						"url" => $url,
 						"data" => [
-							"first" => ["value" => '亲,您已充值成功。', "color" => "#173177"],
+							"first" => ["value" => $remark, "color" => "#173177"],
 							"accountType" => ["value" => '会员类型', "color" => "#000000"],
 							"account" => ["value" => '点击查看', "color" => "#173177"],
 							"amount" => ["value" => $rechargeAmount . '元', "color" => "#173177"],
 							"result" => ["value" => '充值成功', "color" => "#173177"],
-							"remark" => ["value" => $remark, "color" => "#173177"]]
+							"remark" => ["value" => '', "color" => "#173177"]]
 					];
 					if (!empty($miniOpenId)) {
 						$data['miniprogram']['appid'] = $merchantExtend['miniAppId'];