调整供销佣金退款
This commit is contained in:
parent
11720f7a35
commit
2c22405ebe
@ -187,7 +187,7 @@ class CommissionDao
|
||||
}
|
||||
|
||||
$promotionCode = User::where('uid', $refundOrder['uid'])->value('promotion_code');
|
||||
if ($promotionCode) {
|
||||
if ($promotionCode && strpos($promotionCode, 'mer_') === false){
|
||||
$curl = new Curl();
|
||||
$aes = new \AES();
|
||||
$timestamp = time();
|
||||
@ -197,9 +197,7 @@ class CommissionDao
|
||||
$url = env('task.new_worker_host_url') . '/api/shop_call/handleRefund';
|
||||
$result = $curl->post($url, ['timestamp' => $timestamp, 'data' => $encrypt]);
|
||||
$result = json_decode($result, true);
|
||||
if ($result['code'] != 1) {
|
||||
Log::error('发起佣金退款失败:' . var_export($result, true));
|
||||
}
|
||||
Log::error('发起佣金退款:' . var_export($result, true));
|
||||
}
|
||||
}
|
||||
|
||||
@ -255,4 +253,4 @@ class CommissionDao
|
||||
return $users;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user