|
|
@@ -1,20 +1,33 @@
|
|
|
<?php
|
|
|
|
|
|
-namespace biz\user\services;
|
|
|
+namespace biz\merchant\services;
|
|
|
|
|
|
use biz\base\services\BaseService;
|
|
|
-use biz\user\classes\MerchantRemarkClass;
|
|
|
+use biz\merchant\classes\MerchantRemarkClass;
|
|
|
+use common\components\util;
|
|
|
use Yii;
|
|
|
use common\components\weixinUtil;
|
|
|
|
|
|
class MerchantRemarkService extends BaseService
|
|
|
{
|
|
|
|
|
|
- public static $baseFile = '\biz\user\classes\MerchantRemarkClass';
|
|
|
+ public static $baseFile = '\biz\merchant\classes\MerchantRemarkClass';
|
|
|
|
|
|
+ //备注列表 shish 2019.12.19
|
|
|
public static function getRemarkList($userId)
|
|
|
{
|
|
|
return MerchantRemarkClass::getAllByCondition(['userId' => $userId], null, '*');
|
|
|
}
|
|
|
+
|
|
|
+ //备注验证 2019.12.19
|
|
|
+ public static function valid($remark, $merchantId)
|
|
|
+ {
|
|
|
+ if (empty($remark)) {
|
|
|
+ util::fail('备注无效');
|
|
|
+ }
|
|
|
+ if ($remark['merchantId'] != $merchantId) {
|
|
|
+ util::fail('您没有权限操作');
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|