增加获取城市名首字母 && 优惠券内容说明
This commit is contained in:
@@ -53,7 +53,7 @@ class Area extends BaseController
|
||||
];
|
||||
}
|
||||
foreach (range('A', 'Z') as $letter) {
|
||||
if(!isset($data[$letter])){
|
||||
if (!isset($data[$letter])) {
|
||||
$data[$letter] = [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
use Overtrue\Pinyin\Pinyin;
|
||||
|
||||
class Area extends HD_Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('area_model');
|
||||
$this->area_model->set_db('agentdb');
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$where = [];
|
||||
$rows = $this->area_model->select($where, 'id asc', '', '', 'DISTINCT city_id,city_name');
|
||||
$pinyin = new Pinyin();
|
||||
foreach ($rows as $row) {
|
||||
$firstLetter = $pinyin->abbr($row['city_name']);
|
||||
$firstchar = strtoupper(substr($firstLetter, 0, 1));
|
||||
$this->area_model->update(['firstchar'=>$firstchar],['city_id'=>$row['city_id']]);
|
||||
}
|
||||
echo '执行完成';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -184,16 +184,23 @@ class AutoProductEntity
|
||||
'coupon_id' => $row->id,
|
||||
'title' => $row->title,
|
||||
'price' => intval($row->price),
|
||||
'rule' => $row->rule,
|
||||
'rule' => $row->rule ?: '<p>1. 购车补贴券只适用于平台指定的经销商门店</p>
|
||||
<p>2. 购车补贴券只适用于标注的品牌和车型,不同品牌或车型补贴券不通用</p>
|
||||
<p>3. 购车补贴券有效期90天,用户需在90天内完成购车方可享受补贴</p>
|
||||
<p>4. 完成购车后,需在30天内完成资料上传方可享受补贴</p>',
|
||||
'typeCn' => '好车补专项补贴',
|
||||
'timeStart' => date('Y-m-d', strtotime($row->timeStart)),
|
||||
'timeEnd' => date('Y-m-d', strtotime($row->timeEnd)),
|
||||
'activityProcess' => '<p><img src="https://img.liche.cn/space/agent/admin/202506/p_20c14cf6c986f702ed414a5f96699a54.jpg?v=1" alt=""/></p>',
|
||||
'checkStandard' => '<p>① 返现权益仅限购车人本人领取;</p>
|
||||
<p>② 须在权益有效期内提交申请,购车发票开具经销商、购车发票车系/车型应在权益指定范围内;</p>
|
||||
<p>③ 订单创建日期须早于购车发票开票日期</p>
|
||||
<p>④ 购车合同/发票上的姓名、证件号须与实名信息一致</p>
|
||||
<p>⑤ 购车发票应为发票联原件或扫描件,不能为复印件、发票其他联或扫描件。发票照片须 清楚完整,字迹清晰,无修改</p>',
|
||||
'activityProcess' => '<p><img src="https://img.liche.cn/space/agentadmin/202509/p_2678446e044d460f8ace75b52e1f5b51.png" alt=""/></p>
|
||||
<div></div>',
|
||||
'checkStandard' => '<h3><strong>购车合同/线上订单截图</strong></h3><p>1.须真实有效、字迹清晰、内容完整、加盖有效印鉴、不得人为故意遮挡或涂改</p>
|
||||
<p>2.合同/订单截图的签约时间须符合活动规定的有效时间,签约手机号须与领券手机号一致</p>
|
||||
<p>3.合同/订单截图中购买的品牌车型须与购车券对应的品牌车型一致</p>
|
||||
<p>4.合同/订单截图中经销商门店信须在对应购车券指定适用门店范围内</p><br>
|
||||
<h3><strong>购车合同/线上订单截图</strong></h3><p>1.发票为发票联原件照片或扫描,不能是复印件或其他联的照片或扫描件</p>
|
||||
<p>2.开票时间须符合活动规定的有效时间</p>
|
||||
<p>3.发票上购买用户姓名、证件号须与合同/订单截图信息一致,厂牌型号须与购车券适用品 牌车型一致</p>
|
||||
<p>4.发票上销货单位须与下单时选择经销商、购车合同中的售卖方一致</p>',
|
||||
'FAQ' => '<p>问:购车人与实名认证账户人不一致可以领取补贴吗?</p>
|
||||
<p>答:仅限购车人本人领取补贴。</p>
|
||||
<p> </p>
|
||||
|
||||
@@ -163,6 +163,8 @@ class AutoUserCouponEntity
|
||||
if (!$result) {
|
||||
throw new Exception('更新核销码状态失败', API_CODE_FAIL);
|
||||
}
|
||||
//跟新客户为订单客户
|
||||
$this->receiver_customers_model->update(['status' => 3], ['id' => $customersRow['id']]);
|
||||
$this->ci->db->trans_commit();
|
||||
return new MyRESPONSE(EXIT_SUCCESS, '核销成功');
|
||||
} catch (Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user