feat: 分俱乐部付呗收款通道,默认仍走微信直连
小程序前端仍传 wechat;后台可切换 wechat/fubei,支持配置多套付呗并退款按原通道路由。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
41
jituan/migrations/0014_club_mini_pay_channel_and_ledger.py
Normal file
41
jituan/migrations/0014_club_mini_pay_channel_and_ledger.py
Normal file
@@ -0,0 +1,41 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('jituan', '0013_club_pay_withdraw_split'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='club',
|
||||
name='mini_pay_channel',
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default='wechat',
|
||||
help_text='wechat=微信直连;fubei=付呗;默认 wechat,不影响现网',
|
||||
max_length=16,
|
||||
verbose_name='小程序收款通道',
|
||||
),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='PayChannelLedger',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('out_trade_no', models.CharField(db_index=True, max_length=64, unique=True, verbose_name='商户订单号')),
|
||||
('club_id', models.CharField(db_index=True, default='', max_length=16)),
|
||||
('channel', models.CharField(db_index=True, max_length=32, verbose_name='通道')),
|
||||
('channel_config_id', models.IntegerField(blank=True, null=True)),
|
||||
('biz_type', models.CharField(blank=True, default='', max_length=16, verbose_name='order/czjilu')),
|
||||
('provider_order_sn', models.CharField(blank=True, default='', max_length=64, verbose_name='通道侧订单号')),
|
||||
('amount_yuan', models.DecimalField(decimal_places=2, default=0, max_digits=12)),
|
||||
('CreateTime', models.DateTimeField(auto_now_add=True)),
|
||||
('UpdateTime', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': '支付通道流水',
|
||||
'db_table': 'pay_channel_ledger',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user