修改佣金写入的错误

This commit is contained in:
luofei 2024-01-26 12:03:07 +08:00
parent b75419a20f
commit fe119cf1a1

View File

@ -142,11 +142,11 @@ class CommissionDao
$timestamp = time();
$json = ['timestamp' => $timestamp, 'data' => ['order_id' => $order['order_id'], 'order_sn' => $order['order_sn'], 'order_money' => bcmul($order['pay_price'], 100), 'promotion_code' => $promotionCode]];
if ($type == 3) {
$json['street_code'] = $promotionCode;
$json['data']['street_code'] = $promotionCode;
} elseif ($type == 4) {
$json['courier_phone'] = $promotionCode;
$json['data']['courier_phone'] = $promotionCode;
} else {
$json['promotion_code'] = $promotionCode;
$json['data']['promotion_code'] = $promotionCode;
}
$aes = new \AES();
$iv = $aes->buildIv($timestamp);