fix(payment): 充值商品选项旧字符串值导致假条目且不可删除
- SchemaProvider 读取时 group/repeater 字段忽略非数组旧值(textarea 时代的 字符串),回退默认数组,避免前端按字符渲染出 20+ 条假条目 - AksField group/repeater 渲染改为数组安全视图(非数组一律按空列表) - 充值商品选项默认条数调整为 3 条(PHP 与前端 schema 同步)
This commit is contained in:
@@ -145,7 +145,6 @@ class SchemaPayment {
|
||||
['price' => 50, 'pay_price' => 0, 'tag' => '', 'tag_class' => ''],
|
||||
['price' => 100, 'pay_price' => 98, 'tag' => '', 'tag_class' => ''],
|
||||
['price' => 200, 'pay_price' => 188, 'tag' => '推荐', 'tag_class' => 'jb-cyan'],
|
||||
['price' => 500, 'pay_price' => 468, 'tag' => '特惠', 'tag_class' => 'jb-pink'],
|
||||
], 'help' => '用户充值时候,可快速选择的充值金额,同时支持设置折扣', 'fields' => [
|
||||
['key' => 'price', 'label' => '充值金额', 'type' => 'number', 'default' => 100, 'min' => 0, 'suffix' => '元'],
|
||||
['key' => 'pay_price', 'label' => '销售金额', 'type' => 'number', 'default' => 0, 'min' => 0, 'suffix' => '元', 'help' => '选填,设置不同的销售金额实现充值折扣的功能,设置为0则与充值金额一致'],
|
||||
|
||||
Reference in New Issue
Block a user