Commit 27be81efc43bbd6440a9b269db4e44b2eb360b06

Authored by liushiyu
1 parent 043b990e

0.1.30

CNLiveBusinessTools.podspec
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 s.name = 'CNLiveBusinessTools' 10 s.name = 'CNLiveBusinessTools'
11 11
12 - s.version = '0.1.29' 12 + s.version = '0.1.30'
13 s.summary = '业务工具集合组件.' 13 s.summary = '业务工具集合组件.'
14 14
15 # This description is used to generate tags and improve search results. 15 # This description is used to generate tags and improve search results.
CNLiveBusinessTools/Classes/CNLiveEscpTools.m
@@ -72,7 +72,6 @@ NSString * esp(NSString * src) { @@ -72,7 +72,6 @@ NSString * esp(NSString * src) {
72 tmp =[NSString stringWithFormat:@"%@%@",tmp,@"0"]; 72 tmp =[NSString stringWithFormat:@"%@%@",tmp,@"0"];
73 } 73 }
74 if ((int)c != 37) tmp = [NSString stringWithFormat:@"%@%@",tmp,tohex((int)c)];//% 74 if ((int)c != 37) tmp = [NSString stringWithFormat:@"%@%@",tmp,tohex((int)c)];//%
75 - if ((int)c != 45) tmp = [NSString stringWithFormat:@"%@%@",tmp,tohex((int)c)];//-  
76 }else{ 75 }else{
77 tmp = [NSString stringWithFormat:@"%@%@",tmp,@"%u"]; 76 tmp = [NSString stringWithFormat:@"%@%@",tmp,@"%u"];
78 tmp = [NSString stringWithFormat:@"%@%@",tmp,tohex(c)]; 77 tmp = [NSString stringWithFormat:@"%@%@",tmp,tohex(c)];
Example/CNLiveBusinessTools/CNLiveViewController.m
@@ -29,12 +29,20 @@ @@ -29,12 +29,20 @@
29 //NSString * s = lDvbSAZzaa8xPTQ8M0EquG1xos75HGvU%2F%2Fpages%2FaudioDetail%2FaudioDetail%3Fshare%3D1%26contentId%3D1235864%26rowId%3D2%26pubDate%3D2021-12-12%26assignTag%3D%E5%8F%8C%E8%AF%AD%E7%BE%8E%E6%96%87 安卓 29 //NSString * s = lDvbSAZzaa8xPTQ8M0EquG1xos75HGvU%2F%2Fpages%2FaudioDetail%2FaudioDetail%3Fshare%3D1%26contentId%3D1235864%26rowId%3D2%26pubDate%3D2021-12-12%26assignTag%3D%E5%8F%8C%E8%AF%AD%E7%BE%8E%E6%96%87 安卓
30 30
31 //lDvbSAZzaa8xPTQ8M0EquG1xos75HGvU%2F%2Fpages%2FaudioDetail%2FaudioDetail%3Fshare%3D1%26contentId%3D1240263%26rowId%3D1%26pubDate%3D2021%2D11%2D01%26assignTag%3D%E5%90%8D%E7%AF%87%E8%B5%8F%E6%9E%90 31 //lDvbSAZzaa8xPTQ8M0EquG1xos75HGvU%2F%2Fpages%2FaudioDetail%2FaudioDetail%3Fshare%3D1%26contentId%3D1240263%26rowId%3D1%26pubDate%3D2021%2D11%2D01%26assignTag%3D%E5%90%8D%E7%AF%87%E8%B5%8F%E6%9E%90
  32 +//@"http://wjjh5.cnlive.com/smartappLandingpage.html?swanId=lDvbSAZzaa8xPTQ8M0EquG1xos75HGvU%252F%252Fpages%252FaudioDetail%252FaudioDetail%253Fshare%253D1%2526contentId%253D1013851%2526rowId%253D1%2526pubDate%253D2021%252D12%252D13%2526assignTag%253D%2525E5%25258F%25258C%2525E8%2525AF%2525AD%2525E7%2525BE%25258E%2525E6%252596%252587&content=%E6%B2%AA%E6%B1%9F%E8%8B%B1%E8%AF%AD%E6%8F%90%E4%BE%9B%E8%8B%B1%E8%AF%AD%E5%9B%9B%E5%85%AD%E7%BA%A7%E3%80%81%E5%90%AC%E8%AF%B4%E8%AF%BB%E5%86%99%E3%80%81%E5%BD%B1%E8%A7%86%E5%A8%B1%E4%B9%90%E3%80%81%E5%85%A5%E9%97%A8%E5%AD%A6%E4%B9%A0%E8%B5%84%E8%AE%AF&shareSid=409132&title=%E6%9C%89%E5%A3%B0%E5%8F%8C%E8%AF%AD%E7%BE%8E%E6%96%87%EF%BC%9A%E8%BF%99%E4%B8%80%E5%A4%A9%EF%BC%8C%E4%BB%80%E4%B9%88%E4%B9%9F%E6%B2%A1%E5%8F%91%E7%94%9F&imageUrl=https://b.bdstatic.com/searchbox/mappconsole/image/20181105/1541398769-33490.png&isApp=true&plat=i&type=smartapp&ver=2.0.4.21.12.22.11&version=2.0.4";
32 33
33 -  
34 - NSString * s = @"-"; //@"lDvbSAZzaa8xPTQ8M0EquG1xos75HGvU//pages/audioDetail/audioDetail?share=1&contentId=1240263&rowId=1&pubDate=2021-11-01&assignTag=%E5%90%8D%E7%AF%87%E8%B5%8F%E6%9E%90"; 34 +
  35 +}
  36 +
  37 +- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
  38 +{
  39 + [super touchesBegan:touches withEvent:event];
  40 + NSString * s = @"http://wjjh5test.cnlive.com/smartappLandingpage.html?title=1234&imageUrl=https://b.bdstatic.com/searchbox/mappconsole/image/20181105/1541398769-33490.png&swanId=lDvbSAZzaa8xPTQ8M0EquG1xos75HGvU%2F%2Fpages%2FaudioDetail%2FaudioDetail%3Fshare%3D1%26contentId%3D1240263%26rowId%3D1%26pubDate%3D2021%2D11%2D01%26assignTag%3D%E5%90%8D%E7%AF%87%E8%B5%8F%E6%9E%90&type=smartapp";
35 // swanId=lDvbSAZzaa8xPTQ8M0EquG1xos75HGvU//pages/audioDetail/audioDetail?share=1&contentId=1240263&rowId=1&pubDate=2021-11-01&assignTag=%E5%90%8D%E7%AF%87%E8%B5%8F%E6%9E%90 41 // swanId=lDvbSAZzaa8xPTQ8M0EquG1xos75HGvU//pages/audioDetail/audioDetail?share=1&contentId=1240263&rowId=1&pubDate=2021-11-01&assignTag=%E5%90%8D%E7%AF%87%E8%B5%8F%E6%9E%90
36 NSString * temp_s = [CNLiveEscpTools esp:s]; 42 NSString * temp_s = [CNLiveEscpTools esp:s];
  43 + NSString * temp_s_un = [CNLiveEscpTools unesp:temp_s];
37 NSLog(@"%@",temp_s); 44 NSLog(@"%@",temp_s);
  45 + NSLog(@"%@",temp_s_un);
38 } 46 }
39 47
40 - (void)didReceiveMemoryWarning 48 - (void)didReceiveMemoryWarning