You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
- /**
- *
- * ============================================================================
- * * 版权所有 蜘蛛出行 * *
- * 网站地址: http://www.zhizhuchuxing.com
- * ----------------------------------------------------------------------------
- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
- * 使用;不允许对程序代码以任何形式任何目的的再发布。
- * ============================================================================
- * Author By: 倪宗锋
- * PhpStorm SuggestService.php
- * Create By 2016/11/29 14:08 $
- */
-
-
- namespace WeChatUser\Service;
-
-
- use Util\Util\Util;
- use WeChatUser\Model\UserSuggest;
-
- class SuggestService
- {
-
- /**
- * Function Description:添加意见反馈
- * Function Name: addSuggest
- * @param $params array
- *
- * @return array
- *
- * @author 倪宗锋
- */
- public function addSuggest($params)
- {
- $check = $this->checkParamsForAdd($params);
- if ($check['flag'] == false) {
- return $check;
- }
- $userSuggest = new UserSuggest();//用户建议反馈表
- $result = $userSuggest->addSuggest($params);//添加建议反馈
- return $result;
- }
-
- /**
- * Function Description:参数校验
- * Function Name: checkParamsForAdd
- * @param $params array
- *
- * @return array
- *
- * @author 倪宗锋
- */
- public function checkParamsForAdd($params)
- {
- if(empty($params['content'])) {
- return Util::returnArrEr('建议内容不能为空!');
- }
- return Util::returnArrSu();
- }
- }
|