feat: 修改CommissionLogic类以处理错误的spread_uid值

This commit is contained in:
mkm 2024-07-20 11:01:58 +08:00
parent 65ca48d516
commit 5fbcad4329

View File

@ -46,7 +46,12 @@ class CommissionLogic extends BaseLogic
*/
public static function setCook($order, $village_uid = 0, $brigade_uid = 0, $transaction_id = 0)
{
$user_1 = self::user($order, 0.07, $transaction_id, $order['spread_uid'], 12); //会员、厨师
if($order['spread_uid']<=0){
$uid=$order['uid'];
}else{
$uid=$order['spread_uid'];
}
$user_1 = self::user($order, 0.07, $transaction_id, $uid, 12); //会员、厨师
$user_2 = self::user($order, 0.01, $transaction_id, $village_uid, 14); //村长
$user_3 = self::user($order, 0.01, $transaction_id, $brigade_uid, 15); //队长
$platform = self::platform($order, 0.02, $transaction_id); //平台