1网盘功能失效现象:
商务版页面下,文件存储显示为0% 网盘下拉菜单没有和账户同名的目录,上传文件,没有显示
2排查、测试方法:
在http://mop.158pe.com/mop/下,新开企业,套餐关键功能点添加:集中企业邮箱,集中pe系统,集中短彩代理系统,移动文件共享,gegw功能选项
开通企业后,进入管理员界面,添加企业员工,然后登陆,测试,该用户网盘功能失效
3手动解决办法:
在数据库mysql �Ch10.101.120.38 �CP3308 pushfile库里的pfuser表里
select * from pfuser whereemail='[email protected]' 查看userid 提取mopid
update pfuser set maxsize=2000 where eamil='[email protected]'
然后在mysql �Ch10.101.120.30 configdb库里
//查找企业对应cid----提取cid
select * from context where name='pt660.cn';
//查找企业对应oxdatabase数据库----提取db_schema
select * from context_server2db_pool where cid=6978
//查看是否有mopid----提取oxuid
select * From mobilebinding where oxemail ='[email protected]';
//更新数据库
update mobilebinding set mopid='U14080412331214200132609',status=1where oxcid=6978 and oxuid=5;
oxdatabase_*数据库
//查看是否有mopid
select * From mop2oxusers where cid=6978;
//更新数据库
update mop2oxusers setmopid='U14080412331214200132609',sectorflag=1 where cid=6978 and oxuid=5;
4手动添加值之后,再去页面上登录该用户,用户首页文件容量显示2000M 网盘功能下拉菜单下有和账户同名的目录,上传文件,可以显示
二 批量增加网盘功能(shell)
#!/bin/bash
mailname=$1
if [ $# -ne 1 ];then
echo "Error parameter!"
echo "Usage: $0 domain_name"
echo "please write a mailname!"
exit 1
fi
mysql -uroot -p -h 10.101.120.38 -P 3308 pushfile -e "select * from pfuser where email='$mailname';" &&
mysql -uroot -p -h 10.101.120.38 -P 3308 pushfile -e "update pfuser set maxDiskSize=2000 where email='$mailname';" ||echo "pf_data is error!!"
Mopid=$(mysql -uroot -p -h 10.101.120.38 -P 3308 pushfile -N -e "select userId from pfuser where email='$mailname' and userType=1;" )
Oxuid=$(mysql -uroot -p -h 10.101.120.30 configdb -N -e "select oxuid from mobilebinding where oxemail = '$mailname';")
mysql -uroot -h 10.101.120.30 configdb -e "update mobilebinding set mopid='$Mopid',status=1 where oxcid=7003 and oxuid='$Oxuid';"
mysql -uroot -p -h 10.101.120.30 oxdatabase_9 -e "update mop2oxusers set mopid='$Mopid' , sectorflag=1 where cid=7003 and oxuid='$Oxuid';"
echo "the shell is ok!"
去数据库中找出所有用户的emailaddr
-e "select concat (uid,'@',cname) as email from mop2oxusers where cid=7003;">/tmp/a.txt
while read line
do
./addpf.sh $line
done</tmp/a.txt
这样就可以批量执行该脚本