作者 lyh

gx数据

... ... @@ -155,7 +155,7 @@ class RenewProjectController extends BaseController
$item = [
'id' => $item['id'],
'title' => $item['title'],
'channel' => Channel::getChannelText($item['channel']['user_id'] ?? 0).'-'.($item['mobile'] ?? ''),
'channel' => Channel::getChannelText($item['channel']['user_id'] ?? 0),
'key' => $item['deploy_build']['keyword_num'] ?? 0,
'day' => $item['deploy_build']['service_duration'] ?? 0,
'amount' => $item['payment']['amount'] ?? 0,
... ...
... ... @@ -64,7 +64,8 @@ class Channel extends Base
return $sales_id;
}
$channel_alias = self::where('id', $user['channel_id'])->value('alias');
$channel_alias = $channel_alias . '-' . $user['name'];
$channel_mobile = self::where('id', $user['channel_id'])->value('contact_mobile');
$channel_alias = $channel_alias . '-' . $user['name'].'-'.$channel_mobile;
Cache::put('channel_alias_'.$sales_id,$channel_alias,24 * 3600);
}
return $channel_alias;
... ...