diff --git a/agent/admin/controllers/auto/Area.php b/agent/admin/controllers/auto/Area.php index 273335cb..190c9d45 100644 --- a/agent/admin/controllers/auto/Area.php +++ b/agent/admin/controllers/auto/Area.php @@ -53,7 +53,7 @@ class Area extends BaseController ]; } foreach (range('A', 'Z') as $letter) { - if(!isset($data[$letter])){ + if (!isset($data[$letter])) { $data[$letter] = []; } } diff --git a/api/controllers/plan/agent/Area.php b/api/controllers/plan/agent/Area.php new file mode 100644 index 00000000..a97366e8 --- /dev/null +++ b/api/controllers/plan/agent/Area.php @@ -0,0 +1,25 @@ +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 '执行完成'; + } + +} \ No newline at end of file diff --git a/common/libraries/entity/AutoProductEntity.php b/common/libraries/entity/AutoProductEntity.php index 00efa7fd..30490d0f 100644 --- a/common/libraries/entity/AutoProductEntity.php +++ b/common/libraries/entity/AutoProductEntity.php @@ -184,16 +184,23 @@ class AutoProductEntity 'coupon_id' => $row->id, 'title' => $row->title, 'price' => intval($row->price), - 'rule' => $row->rule, + 'rule' => $row->rule ?: '

1. 购车补贴券只适用于平台指定的经销商门店

+

2. 购车补贴券只适用于标注的品牌和车型,不同品牌或车型补贴券不通用

+

3. 购车补贴券有效期90天,用户需在90天内完成购车方可享受补贴

+

4. 完成购车后,需在30天内完成资料上传方可享受补贴

', 'typeCn' => '好车补专项补贴', 'timeStart' => date('Y-m-d', strtotime($row->timeStart)), 'timeEnd' => date('Y-m-d', strtotime($row->timeEnd)), - 'activityProcess' => '

', - 'checkStandard' => '

① 返现权益仅限购车人本人领取;

-

② 须在权益有效期内提交申请,购车发票开具经销商、购车发票车系/车型应在权益指定范围内;

-

③ 订单创建日期须早于购车发票开票日期

-

④ 购车合同/发票上的姓名、证件号须与实名信息一致

-

⑤ 购车发票应为发票联原件或扫描件,不能为复印件、发票其他联或扫描件。发票照片须 清楚完整,字迹清晰,无修改

', + 'activityProcess' => '

+
', + 'checkStandard' => '

购车合同/线上订单截图

1.须真实有效、字迹清晰、内容完整、加盖有效印鉴、不得人为故意遮挡或涂改

+

2.合同/订单截图的签约时间须符合活动规定的有效时间,签约手机号须与领券手机号一致

+

3.合同/订单截图中购买的品牌车型须与购车券对应的品牌车型一致

+

4.合同/订单截图中经销商门店信须在对应购车券指定适用门店范围内


+

购车合同/线上订单截图

1.发票为发票联原件照片或扫描,不能是复印件或其他联的照片或扫描件

+

2.开票时间须符合活动规定的有效时间

+

3.发票上购买用户姓名、证件号须与合同/订单截图信息一致,厂牌型号须与购车券适用品 牌车型一致

+

4.发票上销货单位须与下单时选择经销商、购车合同中的售卖方一致

', 'FAQ' => '

问:购车人与实名认证账户人不一致可以领取补贴吗?

答:仅限购车人本人领取补贴。

 

diff --git a/common/libraries/entity/AutoUserCouponEntity.php b/common/libraries/entity/AutoUserCouponEntity.php index 59e0003f..f154fb9d 100644 --- a/common/libraries/entity/AutoUserCouponEntity.php +++ b/common/libraries/entity/AutoUserCouponEntity.php @@ -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) {