Commit 6bc89ff9ca08e05c0fb306c31f3cb6b7fe260a6c

Authored by teemitop
1 parent bb90ded9

灰度&商家活动更新

@@ -361,7 +361,11 @@ class Seller extends Common @@ -361,7 +361,11 @@ class Seller extends Common
361 $data['title'] = '满赠'; 361 $data['title'] = '满赠';
362 break; 362 break;
363 case '3': 363 case '3':
364 - $data['title'] = '满'.$data['max_num'].'立享'.$data['min_num'].'折'; 364 + if($data['max_num']===0){
  365 + $data['title'] = $data['min_num'].'折';
  366 + }else{
  367 + $data['title'] = '满'.$data['max_num'].'立享'.$data['min_num'].'折';
  368 + }
365 break; 369 break;
366 case '4': 370 case '4':
367 $data['title'] = $data['max_num'].'元代金券'; 371 $data['title'] = $data['max_num'].'元代金券';
@@ -429,7 +429,7 @@ class Template extends Common{ @@ -429,7 +429,7 @@ class Template extends Common{
429 if($data['flag']==3){ 429 if($data['flag']==3){
430 //推送跟新消息 430 //推送跟新消息
431 $file_url = 'http://xt03.colorcun.com'.@$data['file_url']; 431 $file_url = 'http://xt03.colorcun.com'.@$data['file_url'];
432 - $list= file_get_contents(ON_LINE.'Android.Device.SendNewPackageMessage&version='.$data['version'].'&file_url='.$file_url.'&content='.$data['content']); 432 + $list= file_get_contents(ON_LINE.'Android.Device.SendNewPackageMessage&version='.$data['version'].'&file_url='.$file_url.'&content='.$data['content'].'&pro='.$data['pro']);
433 //$array = json_decode($list,TRUE); 433 //$array = json_decode($list,TRUE);
434 } 434 }
435 } 435 }
@@ -34,6 +34,15 @@ @@ -34,6 +34,15 @@
34 </select> 34 </select>
35 </div> 35 </div>
36 </div> 36 </div>
  37 +
  38 + <div class="layui-form-item">
  39 + <label class="layui-form-label">更新方案</label>
  40 + <div class="layui-input-block">
  41 + <input type="radio" name="pro" value="1" title="全量更新" checked="">
  42 + <input type="radio" name="pro" value="2" title="灰度更新">
  43 + </div>
  44 + </div>
  45 +
37 <div class="layui-form-item"> 46 <div class="layui-form-item">
38 <label class="layui-form-label">文件</label> 47 <label class="layui-form-label">文件</label>
39 <input type="hidden" name="pic" id="pic" value=""> 48 <input type="hidden" name="pic" id="pic" value="">