去评论
dz插件网

解决最新discuz内置的实名认证接口运营里面短信服务列表报错缺失pre_common_smsgw表

admin
2021/06/18 15:05:53
解决最新discuz内置的实名认证接口运营里面短信服务列表报错缺失pre_common_smsgw表的解决办法:

如图所示:



解决办法:
后台——站长——数据库——升级:
需要将 config/config_global.php 当中的 $_config['admincp']['runquery'] 设置修改为 1。
  1. CREATE TABLE pre_common_smsgw (
  2.   `smsgwid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  3.   `available` tinyint(1) NOT NULL DEFAULT '0',
  4.   `type` int(10) NOT NULL DEFAULT '0',
  5.   `order` int(10) NOT NULL DEFAULT '0',
  6.   `name` varchar(255) NOT NULL DEFAULT '',
  7.   `class` varchar(255) NOT NULL DEFAULT '0',
  8.   `sendrule` text NOT NULL DEFAULT '',
  9.   `parameters` text NOT NULL DEFAULT '',
  10.   PRIMARY KEY (smsgwid)
  11. ) ENGINE=InnoDB;

  12. CREATE TABLE pre_common_smslog (
  13.   `smslogid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  14.   `uid` mediumint(8) unsigned NOT NULL,
  15.   `type` int(10) NOT NULL DEFAULT '0',
  16.   `smsgw` int(10) NOT NULL DEFAULT '0',
  17.   `status` int(10) NOT NULL DEFAULT '0',
  18.   `verify` int(10) NOT NULL DEFAULT '0',
  19.   `secmobicc` varchar(3) NOT NULL DEFAULT '',
  20.   `secmobile` varchar(12) NOT NULL DEFAULT '',
  21.   `sendtime` int(10) unsigned NOT NULL DEFAULT '0',
  22.   `content` text NOT NULL DEFAULT '',
  23.   PRIMARY KEY (smslogid),
  24.   KEY lastsent (secmobicc,secmobile,sendtime)
  25. ) ENGINE=InnoDB;

  26. INSERT INTO pre_common_setting VALUES ('smsstatus','0');
  27. INSERT INTO pre_common_setting VALUES ('smsdefaultcc','86');
  28. INSERT INTO pre_common_setting VALUES ('smstimelimit','86400');
  29. INSERT INTO pre_common_setting VALUES ('smsnumlimit','5');
  30. INSERT INTO pre_common_setting VALUES ('smsinterval','300');
  31. INSERT INTO pre_common_setting VALUES ('smsmillimit','20');
  32. INSERT INTO pre_common_setting VALUES ('smsglblimit','1000');



短信服务图示: