541469799@qq.com před 1 rokem
rodič
revize
35099b13a2
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. 2 3
      app/index/controller/User.php

+ 2 - 3
app/index/controller/User.php

@@ -150,17 +150,16 @@ class User extends Controller
 
         $url = 'Your friend shared a product with you. Click on the link to view it now:'
             . config('app.app_host') . '/index/index/productDetail.html?goodsId=' . $goodsId . '&key=' . $encryptUserId;
-        //todo 发邮件
         Log::info($url);
 
         $MailCaptchaService = new MailCaptchaService;
         if ($MailCaptchaService->sendText($mailbox, 'From Your Friend', $url)) {
             $shareKeyModel = new ShareKey();
             $shareKeyModel->save(['key_string' => $encryptUserId, 'user_id' => $userId, 'create_time' => time(), 'is_delete' => 0, 'update_time' => time()]);
-            return $this->renderSuccess('Sent Successful!Please check your new mails.');
+            return $this->renderSuccess([], 'Successful! Tell your friends to check for new emails.');
         }
 
-        return $this->renderSuccess([]);
+        return $this->renderSuccess([], 'Successful! Tell your friends to check for new emails.');
     }
 
 }