|
@@ -111,7 +111,7 @@ class MobileController extends UserApi
|
|
|
$hiddenColumn = Mobile::hiddenColumn();
|
|
|
$model=Mobile::show($data);
|
|
|
// $model->field($hiddenColumn,true);
|
|
|
- $model->field('mobile.`id`,`status`,`logo`,`name`,`brand`,`no`,`type`,`network`,`city_id`,`city`,`province_id`,`province`,`amount_exists`,`amount_original`,`amount_base`,`amount_charge`,`amount_proxy`,`amount_kill`,`amount`,`top_time`,`rec_time`,`summary`,`is_activity`,`activity_time_end`,`sort`,`sort_line`,`activity_time`,`stock_num`,`is_offer`,`card_status`,`product_no`,mobile.`proxy_status`,`send_template`,`not_send_template`,`min_age`,`max_age`,`link`,`sort_proxy`');
|
|
|
+ $model->field('mobile.`id`,`status`,`logo`,`name`,`brand`,`no`,`type`,`network`,`city_id`,`city`,`province_id`,`province`,`amount_exists`,`amount_original`,`amount_base`,`amount_charge`,`amount_proxy`,`amount_kill`,`amount`,`top_time`,`rec_time`,`summary`,`is_activity`,`activity_time_end`,`sort`,`sort_line`,`activity_time`,`stock_num`,`is_offer`,`card_status`,`select_num_status`,`product_no`,mobile.`proxy_status`,`send_template`,`not_send_template`,`min_age`,`max_age`,`link`,`sort_proxy`');
|
|
|
$model->where('type',$data['type']);
|
|
|
if(isset($data['price_min']) && is_numeric($data['price_min'])){
|
|
|
$model->where('amount','>=',$data['price_min']);
|
|
@@ -1104,4 +1104,18 @@ class MobileController extends UserApi
|
|
|
|
|
|
dump(parse_url('https://lh.hdlkeji.com/uploads/20230221/0866987639c981b0f59dcc43cdffdc16_hr5n1hkhdap6gcadj63eh7vrmg.jpeg'));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 选号
|
|
|
+ * @ApiMethod (POST)
|
|
|
+ * @ApiParams (name=product_no,description=产品编码)
|
|
|
+ */
|
|
|
+ public function select_num_flow(){
|
|
|
+ $data = $this->_validate([
|
|
|
+ 'product_no'=>['require'],
|
|
|
+ ]);
|
|
|
+
|
|
|
+ $list = GantanhaoService::getSelectNum($data['product_no']);
|
|
|
+ $this->success('成功',$list);
|
|
|
+ }
|
|
|
}
|