提交 a210f49c 编写于 作者: T Terry

new

上级 209feafd
...@@ -29,6 +29,8 @@ class Index ...@@ -29,6 +29,8 @@ class Index
$message = Yii::$service->page->translate->__('Your subscribed email was successful, You can {urlB} click Here to Home Page {urlE}, Thank You.', $arr); $message = Yii::$service->page->translate->__('Your subscribed email was successful, You can {urlB} click Here to Home Page {urlE}, Thank You.', $arr);
$param['email'] = $email; $param['email'] = $email;
Yii::$service->email->customer->sendNewsletterSubscribeEmail($param); Yii::$service->email->customer->sendNewsletterSubscribeEmail($param);
} else if (is_array($message)) {
$message = implode(',', $message);
} }
return [ return [
......
...@@ -11,6 +11,7 @@ namespace fecshop\app\appfront\modules\Customer\controllers; ...@@ -11,6 +11,7 @@ namespace fecshop\app\appfront\modules\Customer\controllers;
use fecshop\app\appfront\modules\AppfrontController; use fecshop\app\appfront\modules\AppfrontController;
use Yii; use Yii;
use fecshop\queue\job\SendEmailJob;
/** /**
* @author Terry Zhao <2358269014@qq.com> * @author Terry Zhao <2358269014@qq.com>
...@@ -23,21 +24,11 @@ class TestController extends AppfrontController ...@@ -23,21 +24,11 @@ class TestController extends AppfrontController
public $enableCsrfValidation = false; public $enableCsrfValidation = false;
/** /**
* Н╦╗Долл─. *
*/ */
public function actionIndex() public function actionIndex()
{ {
echo json_encode([
'data' =>
[
['terry','1','2','3'],
['water','11','22','33'],
['xxx','111','222','333'],
]
]);
exit;
} }
} }
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
], ],
"minimum-stability": "stable", "minimum-stability": "stable",
"require": { "require": {
"php": ">=5.4.0", "php": ">=7.0",
"yiisoft/yii2-swiftmailer": "2.0.7", "yiisoft/yii2-swiftmailer": "2.0.7",
"yiisoft/yii2": ">=2.0.12" , "yiisoft/yii2": ">=2.0.12" ,
"fancyecommerce/fec":">=1.1.3.4", "fancyecommerce/fec":">=1.1.3.4",
......
...@@ -224,7 +224,7 @@ class Service extends BaseObject ...@@ -224,7 +224,7 @@ class Service extends BaseObject
return false; return false;
} }
if ($object->storagePath) { if ($object->storagePath) {
$storagePath = '\\'.trim($object->storagePath.'\\').'\\'; $storagePath = '\\'.trim($object->storagePath, '\\').'\\';
} else { } else {
$storagePath = '\\'.strtolower($className).'\\'; $storagePath = '\\'.strtolower($className).'\\';
} }
......
...@@ -38,7 +38,9 @@ class Article extends Service ...@@ -38,7 +38,9 @@ class Article extends Service
{ {
parent::init(); parent::init();
$currentService = $this->getStorageService($this); $currentService = $this->getStorageService($this);
$this->_article = new $currentService(); $this->_article = new $currentService();
/* /*
if ($this->storage == 'mongodb') { if ($this->storage == 'mongodb') {
$this->_article = new ArticleMongodb(); $this->_article = new ArticleMongodb();
...@@ -47,6 +49,8 @@ class Article extends Service ...@@ -47,6 +49,8 @@ class Article extends Service
} }
*/ */
} }
/** /**
* Get Url by article's url key. * Get Url by article's url key.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册