正式库变测试库
<p>日常我们从客户那里复制一个正式库到公司,要做如下清洗;
1、需要把短信发送关闭;
2.把用户名和店名、组织名称前面加上测试两个字;
3.把用户名的密码刷新为123456;
4.对于稻草人的v1.1版本,因为登陆配置卸载了g_dianpqr表中,所以需要更新登陆配置参数;
select <em> from g_dianpqx where c_quanxbh in ('g_BVPNDiz','g_BVPNDiz2','g_BVPNDiz3') and shopid='88888'
注意:c_quanxvalue里面可以包含地址和端口号 dev.9isoft.com:202
自动更新的地址
select </em> from s_argutbl where arguid='upgrade_downloadurl'
;
select arguname from s_argutbl where companyid='00000' and arguid='upgrade_downloadurl'</p>
<p>做测试环境的时候要注意,有两个pg_inc.php分别在
9internet/common 和bearsoft/report目录下要分别修改;</p>
<pre><code>update s_shopid set shopname='测试'||shopname --店铺名前加测试
;
update g_dianpqx set c_quanxvalue='dev.9isoft.com' where c_quanxbh in ('g_BVPNDiz','g_BVPNDiz2','g_BVPNDiz3') and shopid='88888'
;
update s_argutbl set arguname='http://dev.9isoft.com/upload/' where companyid='00000' and arguid='upgrade_downloadurl' --自动更新的地址
;
update s_company set companyname='测试'||companyname --组织名前加测试
;
update g_yongh set c_yonghmc='测试'||substr(c_yonghmc,1,6) --用户名前加测试
;
update g_yongh set c_newpass='e10adc3949ba59abbe56e057f20f883e' --密码修改为123456
;
update g_dianpqx set c_quanxvalue='-1' where c_quanxmc='设置短信发送方式' ---取消短信发送方式
;
update g_dianpqx set c_quanxvalue='0' where c_quanxmc='是否启用posE发送短信功能'--取消pose短信发送--
;
update g_yongh set c_ip2='00-50-56-24-31-F7',c_ip3='' --设置登陆mac地址
;
update s_shopid set openshop ='20230717' --设置店铺的日结日期为今天
;
update r_vipcard set n_tongb=0 --把会员卡类型的与第三方同步关闭(外部crm系统)
</code></pre>