|
@@ -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.');
|
|
|
}
|
|
|
|
|
|
}
|