提交 a210f49c 编写于 作者: T Terry

new

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