Browse Source

一些功能

Kirin 4 years ago
parent
commit
b3324bdd61
1 changed files with 3 additions and 0 deletions
  1. 3 0
      crmeb/services/YLYService.php

+ 3 - 0
crmeb/services/YLYService.php

@@ -2,6 +2,7 @@
 
 
 namespace crmeb\services;
 namespace crmeb\services;
 
 
+use app\admin\model\system\SystemStorePoint;
 use app\models\system\Cache as CacheModel;
 use app\models\system\Cache as CacheModel;
 use app\models\system\SystemStore;
 use app\models\system\SystemStore;
 use crmeb\exceptions\AuthException;
 use crmeb\exceptions\AuthException;
@@ -184,6 +185,7 @@ class YLYService extends HttpService implements ProviderInterface
      */
      */
     public function setContent(string $name, array $orderInfo, array $product)
     public function setContent(string $name, array $orderInfo, array $product)
     {
     {
+        $orderInfo['point'] = SystemStorePoint::where('id', $orderInfo['point_id'])->value('name');
         $orderInfo['real_name'] = mb_substr($orderInfo['real_name'], 0, 1) . "*" . mb_substr($orderInfo['real_name'], 2);
         $orderInfo['real_name'] = mb_substr($orderInfo['real_name'], 0, 1) . "*" . mb_substr($orderInfo['real_name'], 2);
         $orderInfo['user_phone'] = substr($orderInfo['user_phone'], 0, 3) . "****" . substr($orderInfo['user_phone'], 7);
         $orderInfo['user_phone'] = substr($orderInfo['user_phone'], 0, 3) . "****" . substr($orderInfo['user_phone'], 7);
         $timeYmd = date('Y-m-d', time());
         $timeYmd = date('Y-m-d', time());
@@ -208,6 +210,7 @@ class YLYService extends HttpService implements ProviderInterface
 电    话: {$orderInfo['user_phone']}\r
 电    话: {$orderInfo['user_phone']}\r
 地    址: {$orderInfo['user_address']}\r
 地    址: {$orderInfo['user_address']}\r
 提货时间: {$orderInfo['time_area']}\r
 提货时间: {$orderInfo['time_area']}\r
+自 提 点: {$orderInfo['point']}\r
 订单备注: {$orderInfo['mark']}\r
 订单备注: {$orderInfo['mark']}\r
 *************商品***************\r
 *************商品***************\r
 {$goodsStr}
 {$goodsStr}