| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- /**
- * Created by PhpStorm.
- * Author: 芸众商城 www.yunzshop.com
- * Date: 2017/4/17
- * Time: 下午6:10
- */
- namespace app\common\exceptions;
- class PaymentException extends ShopException
- {
- /**
- * 商城支付密码设置未开启错误码
- */
- const PAY_PASSWORD_SETTING_CLOSED = 2001;
- /**
- * 用户未设置支付密码错误码
- */
- const MEMBER_NOT_SET_PAY_PASSWORD = 2002;
- /**
- * 支付密码错误错误码
- */
- const PAY_PASSWORD_ERROR = 2003;
- public function settingClose()
- {
- $this->code = self::PAY_PASSWORD_SETTING_CLOSED;
- $this->message = '商城支付密码设置未开启';
- $this->data['code'] = $this->code;
- return $this;
- }
- public function notSet()
- {
- $this->code = self::MEMBER_NOT_SET_PAY_PASSWORD;
- $this->message = '用户未设置支付密码';
- $this->data['code'] = $this->code;
- return $this;
- }
- public function passwordError()
- {
- $this->code = self::PAY_PASSWORD_ERROR;
- $this->message = '支付密码错误';
- $this->data['code'] = $this->code;
- return $this;
- }
- }
|