Ver Fonte

一些功能

Kirin há 3 anos atrás
pai
commit
cf756df35d
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      crmeb/services/YLYService.php

+ 2 - 3
crmeb/services/YLYService.php

@@ -147,7 +147,6 @@ class YLYService extends HttpService implements ProviderInterface
         ]);
         if ($request === false) return false;
         $request = json_decode($request, true);
-        var_dump($request);
         if (isset($request['error']) && in_array($request['error'], [18, 14]) && $errorCount == 0) {
             CacheModel::delectDbCache('YLY_access_token');
             $this->getAccessToken();
@@ -184,8 +183,8 @@ class YLYService extends HttpService implements ProviderInterface
      */
     public function setContent(string $name, array $orderInfo, array $product)
     {
-//        $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['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);
         $timeYmd = date('Y-m-d', time());
         $timeHis = date('H:i:s', time());
         $goodsStr = '<table><tr><td>商品名称</td><td>数量</td><td>金额</td><td>小计</td></tr>';