Jump to content

求助!Hack 试图 (Customer -> dni = 0) 客户无法更改个人信息栏


iDevil

Recommended Posts

这是一个已知的bug。下面是官方的修复:
1. 备份后打开classes/Customer.php;
2. 在第126和127行之间:

$this->newsletter_date_add = date('Y-m-d H:i:s');
        return parent::update(true);


3. 加入:

       if ($this->dni === 0)
           $this->dni = NULL;


4. 最后像这样:

           $this->newsletter_date_add = date('Y-m-d H:i:s');
       if ($this->dni === 0)
           $this->dni = NULL;
        return parent::update(true);


5. 保存,测试。

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...