|
|
@@ -1299,7 +1299,7 @@ class OrderMerchantRepository extends BaseRepository
|
|
1299
|
1299
|
//如果商户返佣比例设置的是0怎查系统设设置的分佣比例
|
|
1300
|
1300
|
if ($mer_fanyongbili == 0) {
|
|
1301
|
1301
|
$mer_fanyongbiliConfig = Db::name('system_config_value')->where('config_key', 'base_commission')->where('mer_id', $order['mer_id'])->find();
|
|
1302
|
|
- if ($mer_fanyongbiliConfig) {
|
|
|
1302
|
+ if (!$mer_fanyongbiliConfig) {
|
|
1303
|
1303
|
Db::name('system_config_value')->insert([
|
|
1304
|
1304
|
'config_key' => 'base_commission',
|
|
1305
|
1305
|
'value' => (int)5,
|