Skip to content

Commit

Permalink
services方法去掉action开头的形式,全部改为public函数,以及代码格式的调整
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed May 9, 2020
1 parent dac5588 commit f59777c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion services/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function mailer($mailerConfigParam = '')
* 'senderName'=> $senderName,
* ]
* @param $mailerConfigParam | array or String,对于该参数的配置,
* 您可以参看上面的函数 function actionMailer($mailerConfigParam = '') 或者到 @fecshop/config/services/Email.php参看 $mailerConfig的配置
* 您可以参看上面的函数 function mailer($mailerConfigParam = '') 或者到 @fecshop/config/services/Email.php参看 $mailerConfig的配置
* 该函数用于发送邮件.
*/
public function send($sendInfo, $mailerConfigParam = '')
Expand Down
2 changes: 1 addition & 1 deletion services/FecshopLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function getLangAttrVal($attrVal, $attrName, $langCode)
* @return 当前store 语言对应的值。
*/
/*
protected function actionGetCurrentStoreAttrVal($attrVal,$attrName){
public function getCurrentStoreAttrVal($attrVal,$attrName){
$langCode = Yii::$service->store->currentLangCode ;
if($langCode){
return $this->getLangAttrVal($attrVal,$attrName,$langCode);
Expand Down
2 changes: 1 addition & 1 deletion services/category/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function coll($filter)
}

/**
* @param $filter | Array 和上面的函数 actionColl($filter) 类似。
* @param $filter | Array 和上面的函数 coll($filter) 类似。
*/
public function getFrontList($filter)
{
Expand Down
2 changes: 1 addition & 1 deletion services/customer/newsletter/NewsletterMysqldb.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function emailIsExist($emailAddress)
* @return bool
* 订阅邮件
*/
protected function actionSubscribe($emailAddress, $isRegister = false)
public function subscribe($emailAddress, $isRegister = false)
{
if (!$emailAddress) {
Yii::$service->helper->errors->add('newsletter email address is empty');
Expand Down
2 changes: 1 addition & 1 deletion services/product/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function updateReview($review_data)
/**
* 查看review 的列表
*/
public function actionList($filter)
public function list($filter)
{
return $this->_review->list($filter);
}
Expand Down
2 changes: 1 addition & 1 deletion services/search/SearchInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
*/
interface SearchInterface
{
//protected function actionInitFullSearchIndex();
//public function initFullSearchIndex();
}

0 comments on commit f59777c

Please sign in to comment.