Skip to content

Commit

Permalink
修复应用升级错误
Browse files Browse the repository at this point in the history
  • Loading branch information
brjunsuc committed Jun 8, 2023
1 parent c08fa7d commit 783a66e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
6 changes: 3 additions & 3 deletions addons/demo_rgapi/install.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
`uniacid` int(11) NOT NULL DEFAULT '0',
`image` varchar(255) NOT NULL DEFAULT '' COMMENT '图片路径',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS $tablename_paylog (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`no` varchar(255) NOT NULL DEFAULT '' COMMENT '商户订单号',
Expand All @@ -26,8 +26,8 @@
`uid` varchar(255) NOT NULL DEFAULT '' COMMENT '用户标识',
`uniacid` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;
EOT;

pdo_query($sql);
pdo_run($sql);
2 changes: 1 addition & 1 deletion addons/demo_rgapi/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@
</permissions>
<install><![CDATA[install.php]]></install>
<uninstall><![CDATA[]]></uninstall>
<upgrade><![CDATA[]]></upgrade>
<upgrade><![CDATA[upgrade.php]]></upgrade>
</manifest>
2 changes: 2 additions & 0 deletions addons/demo_rgapi/site.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ public function doWebW7pay() {
//内购发起退款
public function doWebW7refund() {
global $_W, $_GPC;
ini_set('display_errors', '1');
error_reporting(E_ALL ^ E_NOTICE);
try {
load()->library('sdk-console');
$no = safe_gpc_string($_GPC['no']);
Expand Down
6 changes: 3 additions & 3 deletions addons/demo_rgapi/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
`uniacid` int(11) NOT NULL DEFAULT '0',
`image` varchar(255) NOT NULL DEFAULT '' COMMENT '图片路径',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS $tablename_paylog (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`no` varchar(255) NOT NULL DEFAULT '' COMMENT '商户订单号',
Expand All @@ -25,7 +25,7 @@
`uid` varchar(255) NOT NULL DEFAULT '' COMMENT '用户标识',
`uniacid` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;
EOT;

pdo_query($sql);
pdo_run($sql);
8 changes: 8 additions & 0 deletions web/common/permission.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
'default' => '',
'direct' => [],
],
'cloud' => [
'default' => '',
'direct' => [],
],
'message' => [
'default' => '',
'direct' => [],
Expand Down Expand Up @@ -54,6 +58,10 @@
'default' => '',
'direct' => ['visit', 'bindcall', 'mp-verify'],
],
'wxapp' => [
'default' => '',
'direct' => [],
],
];

return $w7_file_permission;
1 change: 1 addition & 0 deletions web/source/cloud/process.ctrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* [WeEngine System] Copyright (c) 2014 W7.CC.
*/
load()->func('communication');
load()->model('extension');

$step = $_GPC['step'] ?? '';
$steps = array('scripts', 'module_upgrade');
Expand Down

0 comments on commit 783a66e

Please sign in to comment.