聯(lián)系官方銷售客服
1835022288
028-61286886
由3.3.1升級到3.5.0之后,短信和個推都不可用,顯示是沒有調(diào)用到方法。代碼如圖
這是在訂單中的Model文件夾下的代碼
在Order.php文件中引入圖中兩個文件,然后在
public function __construct() {
parent::__construct();
$this->prefix = $this->db->dbprefix(SITE_ID.'_order_');
$this->cache_file = md5($this->duri->uri(1).$this->uid.SITE_ID.$this->input->ip_address().$this->input->user_agent());
$this->getui = new D_Getui();
}
聲明了 $this->getui = new D_Getui();系統(tǒng)報錯
比較笨的方法是:
$this->getui = new \D_Getui();
這種比較落后了,放在my目錄cms會自動加載,效率比較高
我的短信接口一樣可以使用。。沒有影響呢