优化打款提醒

master
chenzhi 4 years ago
parent c733fc2e15
commit 94cbae1924

@ -9,6 +9,32 @@ namespace Admin\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";
}
/**
* 新的游戏比例后的数据迁移
* 重复执行将会叠加数据,请勿重复执行

@ -94,7 +94,7 @@
layer.prompt({
formType: 0,
value: '',
title: '验证码已发生到原手机,请输入原手机',
title: '验证码已发送到原手机,请输入原手机验证码',
area: ['380px', '190px'] //自定义文本域宽高
}, function(value, index, elem){
if(value != ''){

Loading…
Cancel
Save