|
|
@ -9,6 +9,32 @@ namespace Admin\Controller;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
class OldCountController extends \Think\Controller
|
|
|
|
class OldCountController extends \Think\Controller
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 公会关系迁移
|
|
|
|
|
|
|
|
* company_relation
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function changeOldCompanyRelation()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//默认设为
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 优化旧表数值,新表需要将 开票税点及渠道费 * 100
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function ChangePartnerField_ChannelRateInvoiceRate()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(time() > 1596211200){
|
|
|
|
|
|
|
|
die("该函数已失效");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$Partner = M("Partner","tab_");
|
|
|
|
|
|
|
|
$dbres = $Partner->field("id,channel_rate,invoice_rate")->select();
|
|
|
|
|
|
|
|
foreach ($dbres as $k => &$v) {
|
|
|
|
|
|
|
|
$v['channel_rate'] = $v['channel_rate']*100;
|
|
|
|
|
|
|
|
$v['invoice_rate'] = $v['invoice_rate']*100;
|
|
|
|
|
|
|
|
$Partner->save($v);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "ChangePartnerField_ChannelRateInvoiceRate success";
|
|
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 新的游戏比例后的数据迁移
|
|
|
|
* 新的游戏比例后的数据迁移
|
|
|
|
* 重复执行将会叠加数据,请勿重复执行
|
|
|
|
* 重复执行将会叠加数据,请勿重复执行
|
|
|
|