WeixinService.php 100 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. <?php
  2. namespace App\Service\Weixin;
  3. use App\Model\WxArticle;
  4. use App\Model\Settings;
  5. use App\Model\WxArticleDetail;
  6. use App\Model\WxArticleDetailContent;
  7. use App\Service\FileUploadService;
  8. use App\Service\Service;
  9. use Illuminate\Support\Facades\DB;
  10. use Illuminate\Support\Facades\Log;
  11. use Illuminate\Support\Facades\Redis;
  12. use Illuminate\Support\Facades\Storage;
  13. class WeixinService extends Service
  14. {
  15. const dir = 'wx_img/';
  16. const wx_img = "app/public/wx_img/";
  17. public function getToken(){
  18. $config = config('qingyaoWx');
  19. $token_key = $config['redis_key'];
  20. $token = Redis::get($token_key);
  21. if(empty($token)){
  22. $url = sprintf($config['get_token'], $config['appid'], $config['appsecret']);
  23. $res = $this->curlOpen($url);
  24. $res = json_decode($res,true);
  25. if(isset($res['errmsg'])) return [false, $res['errmsg']];
  26. if(! isset($res['access_token'])) return [false, 'request error'];
  27. $token = $res['access_token'];
  28. $expire_time = $res['expires_in']-300;
  29. Redis::set($token_key,$token);
  30. Redis::expire($token_key, $expire_time);
  31. return [true,$token];
  32. }
  33. return [true, $token];
  34. }
  35. public function getPublicWxArticle($data){
  36. list($status, $msg) = $this->rule($data);
  37. if(! $status) {
  38. // file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
  39. return [false, 'IP未入白名单'];
  40. }
  41. list($status, $msg) = $this->getToken();
  42. if(! $status) return [false, $msg];
  43. $config = config('qingyaoWx');
  44. $url = sprintf($config['get_article'], $msg);
  45. $offset = empty($data['page_index']) ? 0 : $data['page_index'] - 1;
  46. $count = empty($data['page_size']) || $data['page_size'] > 10 ? 10 : $data['page_size'];
  47. $post = [
  48. 'offset' => $offset,
  49. 'count' => $count,
  50. 'no_content' => 0,
  51. ];
  52. $result = $this->curlOpen($url, ['post' => json_encode($post)]);
  53. $result = json_decode($result,true);
  54. if(isset($result['errmsg'])) return [false, $result['errmsg']];
  55. Log::channel('apiLog')->info('wxget', ["message" => $result]);
  56. return [true, ['data' => $result['item'] ?? [], 'total' => $result['total_count'], 'data_count' => $result['item_count']]];
  57. }
  58. public function getPublicWxArticleDetail($data){
  59. list($status, $msg) = $this->rule($data);
  60. if(! $status) {
  61. // file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
  62. return [false, 'IP未入白名单'];
  63. }
  64. if(empty($data['article_id'])) return [false, '文章ID不能为空'];
  65. list($status, $msg) = $this->getToken();
  66. if(! $status) return [false, $msg];
  67. $config = config('qingyaoWx');
  68. $url = sprintf($config['get_article_detail'], $msg);
  69. $post = [
  70. 'article_id' => $data['article_id'],
  71. ];
  72. $result = $this->curlOpen($url, ['post' => json_encode($post)]);
  73. $result = json_decode($result,true);
  74. if(isset($result['errmsg'])) return [false, $result['errmsg']];
  75. return [true, ['data' => $result['news_item'] ?? [] ]];
  76. }
  77. public function getPublicWxMaterial($data){
  78. list($status, $msg) = $this->rule($data);
  79. if(! $status) {
  80. // file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
  81. return [false, 'IP未入白名单'];
  82. }
  83. list($status, $msg) = $this->getToken();
  84. if(! $status) return [false, $msg];
  85. $config = config('qingyaoWx');
  86. $url = sprintf($config['get_material'], $msg);
  87. $offset = empty($data['page_index']) ? 1 : $data['page_index'] - 1;
  88. $count = empty($data['page_size']) || $data['page_size'] > 10 ? 10 : $data['page_size'];
  89. $post = [
  90. 'offset' => $offset,
  91. 'count' => $count,
  92. 'type' => 'news',
  93. ];
  94. $result = $this->curlOpen($url, ['post' => json_encode($post)]);
  95. $result = json_decode($result,true);
  96. if(isset($result['errmsg'])) return [false, $result['errmsg']];
  97. return [true, ['data' => $result['item'] ?? [], 'total' => $result['total_count'], 'data_count' => $result['item_count']]];
  98. }
  99. public function getPublicWxDraft($data){
  100. list($status, $msg) = $this->rule($data);
  101. if(! $status) {
  102. // file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
  103. return [false, 'IP未入白名单'];
  104. }
  105. list($status, $msg) = $this->getToken();
  106. if(! $status) return [false, $msg];
  107. $config = config('qingyaoWx');
  108. $url = sprintf($config['get_draft'], $msg);
  109. $offset = empty($data['page_index']) ? 1 : $data['page_index'] - 1;
  110. $count = empty($data['page_size']) || $data['page_size'] > 10 ? 10 : $data['page_size'];
  111. $post = [
  112. 'offset' => $offset,
  113. 'count' => $count,
  114. 'no_content' => 0,
  115. ];
  116. $result = $this->curlOpen($url, ['post' => json_encode($post)]);
  117. $result = json_decode($result,true);
  118. if(isset($result['errmsg'])) return [false, $result['errmsg']];
  119. return [true, ['data' => $result['item'] ?? [], 'total' => $result['total_count'], 'data_count' => $result['item_count']]];
  120. }
  121. public function getWxFile($data){
  122. list($status, $msg) = $this->rule($data);
  123. if(! $status) {
  124. // file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
  125. return [false, 'IP未入白名单'];
  126. }
  127. if(empty($data['wx_url'])) return [false, "URL不存在"];
  128. $header = ['Content-Type:application/json'];
  129. list($status,$msg) = $this->get_helper_for_img($data['wx_url'],$header);
  130. if(! $status) return [false, $msg];
  131. return [true, $msg];
  132. }
  133. public function rule($data){
  134. // 获取用户的IP地址
  135. $userIP = $_SERVER['REMOTE_ADDR'];
  136. // 获取设置的IP地址
  137. $allowedIPs = $this->allowedIPs();
  138. if(empty($allowedIPs)) return [false, $userIP];
  139. // 校验用户IP是否在允许的范围内
  140. $isValidIP = false;
  141. foreach ($allowedIPs as $allowedIP) {
  142. if (strpos($allowedIP, '/') !== false) {
  143. // IP段表示法校验
  144. list($subnet, $mask) = explode('/', $allowedIP);
  145. if ((ip2long($userIP) & ~((1 << (32 - $mask)) - 1)) == ip2long($subnet)) {
  146. $isValidIP = true;
  147. break;
  148. }
  149. } else {
  150. // 单个IP地址校验
  151. if ($allowedIP === $userIP) {
  152. $isValidIP = true;
  153. break;
  154. }
  155. }
  156. }
  157. return [$isValidIP, $userIP];
  158. }
  159. public function allowedIPs(){
  160. $allowedIPs = Settings::where('setting_name','allowedIPs')->first();
  161. if(empty($allowedIPs) || empty($allowedIPs->setting_value)) return [];
  162. return explode(',',$allowedIPs->setting_value);
  163. }
  164. public function get_helper_for_img($url,$header=[],$timeout = 20){
  165. if(empty($url)) return [true, ""];
  166. $ch = curl_init();
  167. curl_setopt_array($ch, array(
  168. CURLOPT_URL => $url,
  169. CURLOPT_RETURNTRANSFER => true,
  170. CURLOPT_ENCODING => '',
  171. CURLOPT_MAXREDIRS => 10,
  172. CURLOPT_TIMEOUT => $timeout,
  173. CURLOPT_FOLLOWLOCATION => true,
  174. CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  175. CURLOPT_CUSTOMREQUEST => 'GET',
  176. CURLOPT_SSL_VERIFYPEER => false,
  177. CURLOPT_HTTPHEADER => $header,
  178. ));
  179. $r = curl_exec($ch);
  180. if ($r === false) {
  181. // 获取错误号
  182. $errorNumber = curl_errno($ch);
  183. // 获取错误信息
  184. $errorMessage = curl_error($ch);
  185. $message = "cURL Error #{$errorNumber}: {$errorMessage}";
  186. Log::channel('apiLog')->info('wx', ["message" => $message]);
  187. return [false, $message];
  188. }
  189. $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  190. curl_close($ch);
  191. // 检查是否为图片
  192. if (! $this->isImage($r)) return [false, "资源不是图片"];
  193. if ($httpCode == 200) {
  194. // 检查是否为图片
  195. list($status, $msg) = $this->getTemporaryUrl($r, $url);
  196. if(! $status) return [false, $msg];
  197. $img = $msg;
  198. } else {
  199. return [false, ''];
  200. }
  201. return [true, $img];
  202. }
  203. function isImage($data) {
  204. $imageInfo = getimagesizefromstring($data);
  205. return $imageInfo !== false;
  206. }
  207. //生成临时文件
  208. public function getTemporaryUrl($body,$url)
  209. {
  210. // 定义本地文件路径
  211. list($micro, $seconds) = explode(' ', microtime());
  212. // 从微秒部分截取全部6位作为唯一标识符
  213. $microSuffix = substr($micro, 2, 6);
  214. $name = date('YmdHis', $seconds) . $microSuffix . '.jpg';
  215. $localFilePath = storage_path(self::wx_img . $name);
  216. // 写入文件前先检查文件是否存在
  217. if (! file_exists($localFilePath)) {
  218. // 检查目录是否存在,如果不存在则创建
  219. $directoryPath = dirname($localFilePath);
  220. if (!is_dir($directoryPath)) {
  221. // 设置目录权限,可以根据需要更改
  222. $mode = 0777;
  223. // 使用递归选项创建目录
  224. if (!mkdir($directoryPath, $mode, true)) {
  225. return [false, '目录创建失败'];
  226. }
  227. }
  228. file_put_contents($localFilePath, $body);
  229. }
  230. return [true, $name];
  231. }
  232. public function getArticle(){
  233. // $str = '{"item":[{"article_id":"wEP6ZnQ-KKcHU5uPpYhVi1Ti3u_0Gg7S08iGwgA9PkGkRwt6Yxoib9OawV6vbbjo","content":{"news_item":[{"title":"数字驱动,实现企业持续增长和创新发展","author":"九方","digest":"企业经营管理分为三个维度:个人驱动、流程驱动、数字驱动。","content":"<section style=\"box-sizing: border-box;font-style: normal;font-weight: 400;text-align: justify;font-size: 16px;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: 10px 0%;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: top;width: auto;flex: 95 95 0%;align-self: flex-start;height: auto;border-top: 1px solid rgb(70, 168, 181);border-top-left-radius: 0px;padding: 0px;line-height: 1;letter-spacing: 0px;border-left: 1px none rgb(70, 168, 181);border-bottom-left-radius: 0px;box-sizing: border-box;\"><section style=\"margin: 3px 0% 0px;opacity: 0.99;transform: translate3d(-10px, 0px, 0px);-webkit-transform: translate3d(-10px, 0px, 0px);-moz-transform: translate3d(-10px, 0px, 0px);-o-transform: translate3d(-10px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"text-align: right;color: rgb(70, 168, 181);line-height: 1.3;letter-spacing: 2px;box-sizing: border-box;\"><p style=\"margin: 0px;padding: 0px;box-sizing: border-box;\"><br /></p></section></section></section><section style=\"display: inline-block;vertical-align: bottom;width: auto;align-self: flex-end;flex: 100 100 0%;margin: 0px 0px 0px -16px;border-width: 0px;box-sizing: border-box;\"><section style=\"margin: 3px 0% 0px;transform: translate3d(20px, 0px, 0px);-webkit-transform: translate3d(20px, 0px, 0px);-moz-transform: translate3d(20px, 0px, 0px);-o-transform: translate3d(20px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"text-align: left;color: rgb(70, 168, 181);letter-spacing: 2px;line-height: 1.3;box-sizing: border-box;\"><p style=\"margin: 0px;padding: 0px;box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\"></strong></p></section></section><section style=\"text-align: center;font-size: 0px;margin: -10px 0% 4px;transform: translate3d(-78px, 0px, 0px);-webkit-transform: translate3d(-78px, 0px, 0px);-moz-transform: translate3d(-78px, 0px, 0px);-o-transform: translate3d(-78px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 100%;height: 10px;vertical-align: top;overflow: hidden;background-color: rgba(70, 168, 181, 0.11);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgb(70, 168, 181);height: 1px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section></section><section style=\"margin: 10px 0% 0px;font-size: 0px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 70%;vertical-align: top;height: auto;box-sizing: border-box;\"><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgba(0, 0, 0, 0);height: 1px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgba(0, 0, 0, 0);height: 1px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section><section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"vertical-align: middle;display: inline-block;line-height: 0;width: 27%;height: auto;box-sizing: border-box;\"><img class=\"rich_pages wxw-img\" data-cropselx1=\"0\" data-cropselx2=\"156\" data-cropsely1=\"0\" data-cropsely2=\"58\" data-ratio=\"0.42592592592592593\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFiaiciaViasf3DkjPxrCYLgIU6BTc4A3LSibiaEcgsh9g4h4WTsOXiae6vDMkfw89akzaicIYcs7n23ndsk7g/640?wx_fmt=png\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;max-width: 100%;width: 156px;box-sizing: border-box;height: 66px;\" /></section></section><section style=\"margin: 10px 0% 0px;font-size: 0px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 70%;vertical-align: top;height: auto;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\" /></p></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: 10px 0% -6px;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: top;width: auto;flex: 100 100 0%;align-self: flex-start;height: auto;box-sizing: border-box;\"><section style=\"text-align: center;font-size: 0px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 100%;height: 14px;vertical-align: top;overflow: hidden;border-width: 1px;border-radius: 0px;border-style: solid none none solid;border-color: rgb(70, 168, 181);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section><section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 0%;height: auto;margin: 0px 6px 0px 0px;box-sizing: border-box;\"><section style=\"transform: perspective(0px) rotateZ(315deg);-webkit-transform: perspective(0px) rotateZ(315deg);-moz-transform: perspective(0px) rotateZ(315deg);-o-transform: perspective(0px) rotateZ(315deg);transform-style: flat;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"text-align: center;font-size: 0px;transform: rotateY(180deg);-webkit-transform: rotateY(180deg);-moz-transform: rotateY(180deg);-o-transform: rotateY(180deg);box-sizing: border-box;\"><section style=\"display: inline-block;width: 8px;height: 20px;vertical-align: top;overflow: hidden;border-style: none none none solid;border-width: 0px 1px 1px;border-radius: 0px;border-color: rgb(62, 62, 62) rgb(62, 62, 62) rgb(62, 62, 62) rgb(70, 168, 181);background-color: rgba(255, 255, 255, 0);padding: 0px 0px 0px 3px;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 8px;height: 20px;vertical-align: top;overflow: hidden;border-style: none none none solid;border-width: 0px 1px 1px;border-radius: 0px;border-color: rgb(62, 62, 62) rgb(62, 62, 62) rgb(62, 62, 62) rgb(70, 168, 181);background-color: rgba(254, 255, 255, 0);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section></section></section></section><section style=\"display: inline-block;width: 100%;vertical-align: top;border-width: 1px;border-radius: 0px;border-style: none solid solid;border-color: rgb(70, 168, 181);padding: 0px 18px 12px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"font-size: 15px;line-height: 1.8;letter-spacing: 1.6px;padding: 0px;color: rgb(95, 95, 95);box-sizing: border-box;\" powered-by=\"xiumi.us\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">企业经营管理分为三个维度:个人驱动、流程驱动、数字驱动。</p></section></section><section style=\"text-align: center;margin: 2px 0% 7px;font-size: 0px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 96%;height: 5px;vertical-align: top;overflow: hidden;background-color: rgba(70, 168, 181, 0.18);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: 0px 0%;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: middle;width: auto;flex: 0 0 0%;align-self: center;height: auto;margin: 0px 0px 0px 3px;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: 0px 0%;box-sizing: border-box;\"><section style=\"display: inline-block;width: auto;vertical-align: bottom;line-height: 0;letter-spacing: 0px;flex: 0 0 0%;align-self: flex-end;height: auto;border-width: 0px;border-top-style: solid;border-top-color: rgb(62, 62, 62);border-top-left-radius: 0px;box-sizing: border-box;\"><section style=\"text-align: right;margin: 0px 0% -1px;justify-content: flex-end;transform: translate3d(6px, 0px, 0px);-webkit-transform: translate3d(6px, 0px, 0px);-moz-transform: translate3d(6px, 0px, 0px);-o-transform: translate3d(6px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 5px;height: 8px;vertical-align: top;overflow: hidden;border-left: 1px solid rgb(70, 168, 181);border-bottom-left-radius: 3px;border-bottom: 1px solid rgb(70, 168, 181);border-bottom-right-radius: 0px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section><section style=\"transform: translate3d(4px, 0px, 0px);-webkit-transform: translate3d(4px, 0px, 0px);-moz-transform: translate3d(4px, 0px, 0px);-o-transform: translate3d(4px, 0px, 0px);margin: 0px 0% -1px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 5px;vertical-align: top;border-style: none none solid;border-width: 0px 0px 1px;border-radius: 0px;border-top-color: rgb(70, 168, 181);height: auto;border-bottom-color: rgb(70, 168, 181);box-sizing: border-box;\"><section style=\"text-align: right;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);margin: 0px 0% -1px;justify-content: flex-end;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 4px;height: 4px;vertical-align: top;overflow: hidden;border-width: 1px;border-radius: 0px 50px 50px 0px;border-style: solid solid solid none;border-color: rgb(70, 168, 181) rgb(70, 168, 181) rgb(70, 168, 181) rgb(62, 62, 62);background-color: rgba(255, 255, 255, 0);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section><section style=\"text-align: left;justify-content: flex-start;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 4px;height: 4px;vertical-align: top;overflow: hidden;border-width: 1px;border-radius: 50px 0px 0px 50px;border-style: solid none solid solid;border-color: rgb(70, 168, 181) rgb(62, 62, 62) rgb(70, 168, 181) rgb(70, 168, 181);background-color: rgba(255, 255, 255, 0);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section><section style=\"text-align: center;margin: -1px 0% 0px;transform: translate3d(2px, 0px, 0px);-webkit-transform: translate3d(2px, 0px, 0px);-moz-transform: translate3d(2px, 0px, 0px);-o-transform: translate3d(2px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 5px;height: 8px;vertical-align: top;overflow: hidden;border-width: 1px;border-radius: 0px 3px 0px 0px;border-style: solid solid none none;border-color: rgb(70, 168, 181);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section></section></section><section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 0%;height: auto;line-height: 0;margin: 0px 0px 0px -8px;box-sizing: border-box;\"><section style=\"text-align: center;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 20px;height: 20px;vertical-align: top;overflow: hidden;border-width: 0px;border-radius: 50%;border-style: none;border-color: rgb(62, 62, 62);background-color: rgba(70, 168, 181, 0.24);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section><section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 100 100 0%;height: auto;padding: 0px 0px 0px 14px;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\" /></p></section></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;box-sizing: border-box;\"><section style=\"display: inline-block;width: auto;vertical-align: top;border-left: 1px solid rgb(70, 168, 181);border-bottom-left-radius: 0px;flex: 100 100 0%;align-self: flex-start;height: auto;margin: 0px 0px 0px 9px;padding: 10px 0px 20px 13px;box-sizing: border-box;\"><section style=\"opacity: 0.99;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"font-size: 15px;color: rgb(62, 62, 62);letter-spacing: 1px;line-height: 1.8;box-sizing: border-box;\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">个人驱动的最大优点是决策效率高,速度快;缺点是人的思维与生俱来的不稳定性和认知遮蔽带来的片面性有可能导致决策失误,这对企业经营来说是极大的风险敞口。</p></section></section></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: 0px 0%;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: middle;width: auto;flex: 0 0 0%;align-self: center;height: auto;margin: 0px 0px 0px 3px;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: 0px 0%;box-sizing: border-box;\"><section style=\"display: inline-block;width: auto;vertical-align: bottom;line-height: 0;letter-spacing: 0px;flex: 0 0 0%;align-self: flex-end;height: auto;border-width: 0px;border-top-style: solid;border-top-color: rgb(62, 62, 62);border-top-left-radius: 0px;box-sizing: border-box;\"><section style=\"text-align: right;margin: 0px 0% -1px;justify-content: flex-end;transform: translate3d(6px, 0px, 0px);-webkit-transform: translate3d(6px, 0px, 0px);-moz-transform: translate3d(6px, 0px, 0px);-o-transform: translate3d(6px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 5px;height: 8px;vertical-align: top;overflow: hidden;border-left: 1px solid rgb(70, 168, 181);border-bottom-left-radius: 3px;border-bottom: 1px solid rgb(70, 168, 181);border-bottom-right-radius: 0px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section><section style=\"transform: translate3d(4px, 0px, 0px);-webkit-transform: translate3d(4px, 0px, 0px);-moz-transform: translate3d(4px, 0px, 0px);-o-transform: translate3d(4px, 0px, 0px);margin: 0px 0% -1px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 5px;vertical-align: top;border-style: none none solid;border-width: 0px 0px 1px;border-radius: 0px;border-top-color: rgb(70, 168, 181);height: auto;border-bottom-color: rgb(70, 168, 181);box-sizing: border-box;\"><section style=\"text-align: right;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);margin: 0px 0% -1px;justify-content: flex-end;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 4px;height: 4px;vertical-align: top;overflow: hidden;border-width: 1px;border-radius: 0px 50px 50px 0px;border-style: solid solid solid none;border-color: rgb(70, 168, 181) rgb(70, 168, 181) rgb(70, 168, 181) rgb(62, 62, 62);background-color: rgba(255, 255, 255, 0);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section><section style=\"text-align: left;justify-content: flex-start;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 4px;height: 4px;vertical-align: top;overflow: hidden;border-width: 1px;border-radius: 50px 0px 0px 50px;border-style: solid none solid solid;border-color: rgb(70, 168, 181) rgb(62, 62, 62) rgb(70, 168, 181) rgb(70, 168, 181);background-color: rgba(255, 255, 255, 0);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section><section style=\"text-align: center;margin: -1px 0% 0px;transform: translate3d(2px, 0px, 0px);-webkit-transform: translate3d(2px, 0px, 0px);-moz-transform: translate3d(2px, 0px, 0px);-o-transform: translate3d(2px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 5px;height: 8px;vertical-align: top;overflow: hidden;border-width: 1px;border-radius: 0px 3px 0px 0px;border-style: solid solid none none;border-color: rgb(70, 168, 181);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section></section></section><section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 0%;height: auto;line-height: 0;margin: 0px 0px 0px -8px;box-sizing: border-box;\"><section style=\"text-align: center;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 20px;height: 20px;vertical-align: top;overflow: hidden;border-width: 0px;border-radius: 50%;border-style: none;border-color: rgb(62, 62, 62);background-color: rgba(70, 168, 181, 0.24);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section><section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 100 100 0%;height: auto;padding: 0px 0px 0px 14px;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\" /></p></section></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;box-sizing: border-box;\"><section style=\"display: inline-block;width: auto;vertical-align: top;border-left: 1px solid rgb(70, 168, 181);border-bottom-left-radius: 0px;flex: 100 100 0%;align-self: flex-start;height: auto;margin: 0px 0px 0px 9px;padding: 10px 0px 20px 13px;box-sizing: border-box;\"><section style=\"opacity: 0.99;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"font-size: 15px;color: rgb(62, 62, 62);letter-spacing: 1px;line-height: 1.8;box-sizing: border-box;\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">流程驱动的最大优点是适合工业时代的分工协作模式,把业务流程化,个人只需执行岗位职责即可,极大提升个人的工作效率和规范整个企业的业务动作;缺点是,非常强调流程的结果就是不可避免的带来一些效率的下降。</p></section></section></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: 0px 0%;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: middle;width: auto;flex: 0 0 0%;align-self: center;height: auto;margin: 0px 0px 0px 3px;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: 0px 0%;box-sizing: border-box;\"><section style=\"display: inline-block;width: auto;vertical-align: bottom;line-height: 0;letter-spacing: 0px;flex: 0 0 0%;align-self: flex-end;height: auto;border-width: 0px;border-top-style: solid;border-top-color: rgb(62, 62, 62);border-top-left-radius: 0px;box-sizing: border-box;\"><section style=\"text-align: right;margin: 0px 0% -1px;justify-content: flex-end;transform: translate3d(6px, 0px, 0px);-webkit-transform: translate3d(6px, 0px, 0px);-moz-transform: translate3d(6px, 0px, 0px);-o-transform: translate3d(6px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 5px;height: 8px;vertical-align: top;overflow: hidden;border-left: 1px solid rgb(70, 168, 181);border-bottom-left-radius: 3px;border-bottom: 1px solid rgb(70, 168, 181);border-bottom-right-radius: 0px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section><section style=\"transform: translate3d(4px, 0px, 0px);-webkit-transform: translate3d(4px, 0px, 0px);-moz-transform: translate3d(4px, 0px, 0px);-o-transform: translate3d(4px, 0px, 0px);margin: 0px 0% -1px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 5px;vertical-align: top;border-style: none none solid;border-width: 0px 0px 1px;border-radius: 0px;border-top-color: rgb(70, 168, 181);height: auto;border-bottom-color: rgb(70, 168, 181);box-sizing: border-box;\"><section style=\"text-align: right;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);margin: 0px 0% -1px;justify-content: flex-end;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 4px;height: 4px;vertical-align: top;overflow: hidden;border-width: 1px;border-radius: 0px 50px 50px 0px;border-style: solid solid solid none;border-color: rgb(70, 168, 181) rgb(70, 168, 181) rgb(70, 168, 181) rgb(62, 62, 62);background-color: rgba(255, 255, 255, 0);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section><section style=\"text-align: left;justify-content: flex-start;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 4px;height: 4px;vertical-align: top;overflow: hidden;border-width: 1px;border-radius: 50px 0px 0px 50px;border-style: solid none solid solid;border-color: rgb(70, 168, 181) rgb(62, 62, 62) rgb(70, 168, 181) rgb(70, 168, 181);background-color: rgba(255, 255, 255, 0);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section><section style=\"text-align: center;margin: -1px 0% 0px;transform: translate3d(2px, 0px, 0px);-webkit-transform: translate3d(2px, 0px, 0px);-moz-transform: translate3d(2px, 0px, 0px);-o-transform: translate3d(2px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 5px;height: 8px;vertical-align: top;overflow: hidden;border-width: 1px;border-radius: 0px 3px 0px 0px;border-style: solid solid none none;border-color: rgb(70, 168, 181);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section></section></section><section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 0%;height: auto;line-height: 0;margin: 0px 0px 0px -8px;box-sizing: border-box;\"><section style=\"text-align: center;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 20px;height: 20px;vertical-align: top;overflow: hidden;border-width: 0px;border-radius: 50%;border-style: none;border-color: rgb(62, 62, 62);background-color: rgba(70, 168, 181, 0.24);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section><section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 100 100 0%;height: auto;padding: 0px 0px 0px 14px;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\" /></p></section></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;box-sizing: border-box;\"><section style=\"display: inline-block;width: auto;vertical-align: top;border-left: 1px solid rgb(70, 168, 181);border-bottom-left-radius: 0px;flex: 100 100 0%;align-self: flex-start;height: auto;margin: 0px 0px 0px 9px;padding: 10px 0px 20px 13px;box-sizing: border-box;\"><section style=\"opacity: 0.99;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"font-size: 15px;color: rgb(62, 62, 62);letter-spacing: 1px;line-height: 1.8;box-sizing: border-box;\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">数据驱动的优点是把企业经营的线下场景数字化、便捷化、可视可控化,对所有生成的的数据进行多维分析,并进而利用分析结果为经营决策提供理性坚实的数据支撑;而缺点,一是方案层面,基于产业端的数字化应用场景对实际业务的适配程度,二是人的方面,基于传统工业模式的惯性思维向数字化思维转型,这两点客观来讲都会不可避免的经历一个过程,需要用时间换空间。</p></section></section></section></section></section><section style=\"font-size: 0px;margin: 10px 0% 0px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 100%;vertical-align: top;border-right: 1px solid rgb(70, 168, 181);border-top-right-radius: 0px;box-sizing: border-box;\"><section style=\"margin: 0px 0%;text-align: right;justify-content: flex-end;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 46%;vertical-align: top;height: auto;box-sizing: border-box;\"><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgb(70, 168, 181);height: 1px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: -8px 0% 5px;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: bottom;width: auto;flex: 0 0 0%;align-self: flex-end;height: auto;box-sizing: border-box;\"><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 29px;vertical-align: top;height: auto;background-color: rgba(41, 155, 170, 0.1);border-width: 0px;border-radius: 1px;border-style: none;border-color: rgb(62, 62, 62);overflow: hidden;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\" /></p></section></section></section></section><section style=\"display: inline-block;vertical-align: bottom;width: auto;align-self: flex-end;flex: 100 100 0%;height: auto;margin: 0px 8px 0px 1px;border-width: 0px;box-sizing: border-box;\"><section style=\"text-align: right;justify-content: flex-end;margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 100%;height: 6px;vertical-align: top;overflow: hidden;background-color: rgba(41, 155, 170, 0.1);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;text-align: right;justify-content: flex-end;margin: 0px 0% 10px;box-sizing: border-box;\"><section style=\"display: inline-block;width: auto;vertical-align: top;border-style: none solid solid;border-width: 1px;border-radius: 0px;border-color: rgb(70, 168, 181);flex: 100 100 0%;align-self: flex-start;height: auto;margin: 0px 0px 0px 4px;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: 0px 0%;box-sizing: border-box;\"><section style=\"display: inline-block;width: 100%;vertical-align: top;padding: 16px 20px 6px;flex: 0 0 auto;align-self: flex-start;height: auto;margin: 0px;border-width: 0px;box-sizing: border-box;\"><section style=\"text-align: justify;font-size: 15px;line-height: 1.8;letter-spacing: 1.8px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">&nbsp; &nbsp; &nbsp; 在这个过程中,一是需要数字化解决方案的规划者要真正在行业中沉淀下来,在理解行业的基础上为企业做出真正契合企业需求,解决行业痛点的解决方案;二是在数字化建设转型过程中,面对困难要能够如实的彻见,数字化转型不光是业务的数字化转型,还有人的思维的数字化转型,一定会经历一个初步建立并逐步完善的过程,任何组织都不可能一蹴而就,以这个洞见为前提,才会拥有一个好的心态和规划。</p></section><section style=\"text-align: left;justify-content: flex-start;font-size: 0px;transform: translate3d(-15px, 0px, 0px);-webkit-transform: translate3d(-15px, 0px, 0px);-moz-transform: translate3d(-15px, 0px, 0px);-o-transform: translate3d(-15px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 50%;vertical-align: top;height: auto;box-sizing: border-box;\"><section style=\"margin: 16px 0% 0px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgb(70, 168, 181);height: 1px;box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section></section></section></section></section></section><section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"max-width: 100%;vertical-align: middle;display: inline-block;line-height: 0;box-sizing: border-box;\"><img class=\"rich_pages wxw-img\" data-cropselx1=\"0\" data-cropselx2=\"578\" data-cropsely1=\"0\" data-cropsely2=\"324\" data-ratio=\"0.562962962962963\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFhr1IIzwUickXzhaPlg5R7mWb3SUaC5bZedYeHnEiaY7ntmT8WTZZNeGCNzjzBE5BR7IvzWyRVRziciaA/640?wx_fmt=png&amp;from=appmsg\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;max-width: 100%;box-sizing: border-box;width: 578px;height: 325px;\" /></section></section><section style=\"margin: 10px 0% 0px;font-size: 0px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 70%;vertical-align: top;height: auto;box-sizing: border-box;\"><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgba(0, 0, 0, 0);height: 1px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgba(0, 0, 0, 0);height: 1px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section><section style=\"margin: 15px 0% 10px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 100%;vertical-align: top;border-style: solid;border-width: 1px;border-radius: 0px;border-color: rgb(70, 168, 181);box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;text-align: right;justify-content: flex-end;margin: -4px 0% 0px;transform: translate3d(-15px, 0px, 0px);-webkit-transform: translate3d(-15px, 0px, 0px);-moz-transform: translate3d(-15px, 0px, 0px);-o-transform: translate3d(-15px, 0px, 0px);box-sizing: border-box;\"><section style=\"display: inline-block;width: 45px;vertical-align: top;background-color: rgb(70, 168, 181);flex: 0 0 auto;height: auto;line-height: 0;letter-spacing: 0px;align-self: flex-start;box-sizing: border-box;\"><section style=\"text-align: center;margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"max-width: 100%;vertical-align: middle;display: inline-block;line-height: 0;width: 100%;height: auto;box-sizing: border-box;\"><img data-ratio=\"0.1503267973856209\" data-w=\"306\" data-src=\"https://mmbiz.qpic.cn/sz_mmbiz_gif/MVPvEL7Qg0Egj76lSPicXbCTgBVIialdvwWxbm21OZytaf8P6xK86NglUjbFn8agwwLkdNhBNdSRvMLtiaXKjEj7A/640?wx_fmt=gif\" style=\"vertical-align: middle;max-width: 100%;width: 100%;box-sizing: border-box;\" width=\"100%\" data-type=\"gif\" /></section></section></section></section></section><section style=\"display: inline-block;width: 100%;vertical-align: top;padding: 10px 20px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"font-size: 15px;color: rgb(106, 106, 106);line-height: 1.8;letter-spacing: 1.8px;padding: 0px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">&nbsp; &nbsp; &nbsp; 所以对于数字化,无论政府部门还是企业部门,都应该以开放、包容的心态去积极拥抱,并勇于探索。中国用20年的时间把消费互联网做到了规模全球第一,希望再用20年来推进产业互联网的发展,以全面数字化为抓手,完成中国的弯道超车,实现中华民族的伟大复兴。</p></section></section></section></section><section style=\"margin: 10px 0% 0px;font-size: 0px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 70%;vertical-align: top;height: auto;box-sizing: border-box;\"><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgba(0, 0, 0, 0);height: 1px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgba(0, 0, 0, 0);height: 1px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section><section style=\"margin: 10px 0% 0px;font-size: 0px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 70%;vertical-align: top;height: auto;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\" /></p></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: 10px 0% 0px;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: top;width: auto;flex: 100 100 0%;align-self: flex-start;height: auto;border-top: 1px solid rgb(70, 168, 181);border-top-left-radius: 0px;padding: 0px 10px 0px 20px;line-height: 1;letter-spacing: 0px;border-left: 1px solid rgb(70, 168, 181);border-bottom-left-radius: 0px;box-sizing: border-box;\"><section style=\"text-align: right;font-size: 0px;margin: 4px 0%;transform: translate3d(66px, 0px, 0px);-webkit-transform: translate3d(66px, 0px, 0px);-moz-transform: translate3d(66px, 0px, 0px);-o-transform: translate3d(66px, 0px, 0px);justify-content: flex-end;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: inline-block;width: 182px;height: 8px;vertical-align: top;overflow: hidden;background-color: rgba(70, 168, 181, 0.11);box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section><section style=\"display: inline-block;vertical-align: top;width: 18px;align-self: stretch;flex: 0 0 auto;height: auto;background-image: linear-gradient(to left bottom, rgba(70, 166, 179, 0) 48%, rgb(70, 166, 179) 49%, rgb(70, 166, 179) 52%, rgba(70, 166, 179, 0) 53%);box-sizing: border-box;\"><section style=\"font-size: 0px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"box-sizing: border-box;\"><p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\" /></p></section></section></section><section style=\"display: inline-block;vertical-align: bottom;width: 52px;align-self: flex-end;flex: 0 0 auto;margin: 0px 0px 0px -16px;border-width: 0px;height: auto;box-sizing: border-box;\"><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgb(70, 168, 181);height: 1px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section></section><section style=\"display: inline-block;width: 100%;vertical-align: top;border-style: none solid;border-width: 1px;border-radius: 0px;border-color: rgb(70, 168, 181);padding: 0px 10px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: middle;width: 33%;flex: 0 0 auto;align-self: center;height: auto;box-sizing: border-box;\"><section style=\"text-align: center;margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"max-width: 100%;vertical-align: middle;display: inline-block;line-height: 0;box-sizing: border-box;\"><img class=\"rich_pages wxw-img\" data-cropselx1=\"0\" data-cropselx2=\"183\" data-cropsely1=\"0\" data-cropsely2=\"183\" data-ratio=\"1\" data-src=\"https://mmbiz.qpic.cn/mmbiz_jpg/SpEibFiaCIZFiaiciaViasf3DkjPxrCYLgIU6BFn1lwf2RHIbx4wjn2k3B8GQph5d14CviarWtAVOx6zBeIBkApYpicS2A/640?wx_fmt=jpeg\" data-type=\"jpeg\" data-w=\"344\" style=\"vertical-align: middle;max-width: 100%;box-sizing: border-box;width: 183px;height: 183px;\" /></section></section></section><section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 100 100 0%;margin: 0px 0px 0px 10px;box-sizing: border-box;\"><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"display: flex;flex-flow: row nowrap;margin: 10px 0% 5px;text-align: left;justify-content: flex-start;transform: translate3d(10px, 0px, 0px);-webkit-transform: translate3d(10px, 0px, 0px);-moz-transform: translate3d(10px, 0px, 0px);-o-transform: translate3d(10px, 0px, 0px);box-sizing: border-box;\"><section style=\"display: inline-block;width: auto;vertical-align: bottom;align-self: flex-end;min-width: 10%;max-width: 100%;flex: 0 0 auto;height: auto;box-sizing: border-box;\"><section style=\"margin: 7px 0% 6px;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"text-align: justify;font-size: 15px;color: rgb(70, 168, 181);line-height: 1.3;letter-spacing: 1px;padding: 0px;box-sizing: border-box;\"><p style=\"text-align: center;white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">扫二维码|关注我们</strong></p></section></section><section style=\"margin: 0px 0%;transform: translate3d(40px, 0px, 0px);-webkit-transform: translate3d(40px, 0px, 0px);-moz-transform: translate3d(40px, 0px, 0px);-o-transform: translate3d(40px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgba(70, 168, 181, 0.53);height: 1px;box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section></section></section></section><section style=\"margin: 0px 0% 10px;transform: translate3d(10px, 0px, 0px);-webkit-transform: translate3d(10px, 0px, 0px);-moz-transform: translate3d(10px, 0px, 0px);-o-transform: translate3d(10px, 0px, 0px);box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"text-align: center;font-size: 14px;color: rgb(106, 106, 106);line-height: 1.6;letter-spacing: 2px;padding: 0px;box-sizing: border-box;\"><p style=\"text-align: left;margin: 0px;padding: 0px;box-sizing: border-box;\">微信号|hzqingyaokeji</p></section></section></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"margin: 10px 0% 7px;display: flex;flex-flow: row nowrap;text-align: left;justify-content: flex-start;transform: translate3d(10px, 0px, 0px);-webkit-transform: translate3d(10px, 0px, 0px);-moz-transform: translate3d(10px, 0px, 0px);-o-transform: translate3d(10px, 0px, 0px);box-sizing: border-box;\"><section style=\"display: inline-block;width: 33%;vertical-align: top;align-self: flex-start;flex: 0 0 auto;height: auto;box-sizing: border-box;\"><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgb(70, 168, 181);height: 1px;box-sizing: border-box;\"><br /></section></section></section></section></section></section><section style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"margin: 0px 0% 10px;display: flex;flex-flow: row nowrap;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 300 300 0%;height: auto;box-sizing: border-box;\"><section style=\"margin: 0px 0%;box-sizing: border-box;\" powered-by=\"xiumi.us\"><section style=\"background-color: rgb(70, 168, 181);height: 1px;box-sizing: border-box;\"><section><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"></svg></section></section><section style=\"background-color: rgb(70, 168, 181);height: 1px;box-sizing: border-box;\"><br /></section><p style=\"margin-bottom: 0.1px;outline: 0px;letter-spacing: 0.544px;text-wrap: wrap;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height: normal;background: white;\"><span style=\"outline: 0px;text-decoration: underline;font-size: 12px;color: rgb(136, 136, 136);letter-spacing: 0.5px;\">重要声明</span><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.034em;\"></span></p><section style=\"margin: 0px 0% 10px;display: flex;flex-flow: row nowrap;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 300 300 0%;height: auto;box-sizing: border-box;\"><section style=\"margin: 0px 0% 10px;display: flex;flex-flow: row nowrap;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 300 300 0%;height: auto;box-sizing: border-box;\"><section style=\"margin: 0px 0% 10px;display: flex;flex-flow: row nowrap;box-sizing: border-box;\"><span style=\"outline: 0px;font-size: 12px;color: rgb(136, 136, 136);letter-spacing: 0.5px;\">本公众号旨在提供有关青爻科技的一般信息,而并非对任何服务或产品的推介或要约。不应将本公众号任何内容视为法规、税务、会计、投资或其他专业咨询建议。本公众号对资料的准确性、完整性或可靠性不作任何明示或暗示的陈述或保证。本公众号对发布的任何内容的变更不会另行通知,本公众号也没有义务更新已发布的任何内容。青爻科技任何管理人员、雇员或代理人均不对因使用本公众号所载任何信息而产生的任何损失或损害承担任何责任。</span></section></section></section></section></section><section style=\"margin: 0px 0% 10px;display: flex;flex-flow: row nowrap;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 300 300 0%;height: auto;box-sizing: border-box;\"><span style=\"color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">本文所引用的内容,包括但不限于文字、图片、数据、观点等,均来源于网络或公开发表的资料。</span><span style=\"color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">本文在引用时,已尽力查明原作者和出处,并会进行标注。</span><span style=\"color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">若因技术原因或信息来源的不确定性,导致部分引用未能明确标注原作者或出处,我们深表歉意,并愿意在得知后第一时间进行更正。我们尊重每一位原创者的劳动成果和知识产权,本文的引用仅为传播信息、分享知识之目的,并非用于商业用途。如有任何引用不当或侵犯了他人的著作权、知识产权等权益,我们深表歉意,并将立即删除或更正相关内容。请原创者和相关权益人理解,并联系我们进行协商处理。同时,我们也呼吁广大读者,尊重知识产权,共同维护一个健康、和谐的网络环境。感谢您的理解与支持,如有任何侵权问题,请通过公众号留言或电子邮件与我们联系,我们将尽快给予回复和处理。</span><br /></section></section><section style=\"margin: 0px 0% 10px;display: flex;flex-flow: row nowrap;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 300 300 0%;height: auto;box-sizing: border-box;\"><br /></section></section><section style=\"margin: 0px 0% 10px;display: flex;flex-flow: row nowrap;box-sizing: border-box;\"><section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 300 300 0%;height: auto;box-sizing: border-box;\"><span style=\"font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\">©2024年 杭州青爻科技有限公司。</span><span style=\"font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\">版权所有。</span><br /></section></section><section style=\"background-color: rgb(70, 168, 181);height: 1px;box-sizing: border-box;\"><br /></section></section></section></section></section></section><p style=\"display: none;\"><mp-style-type data-value=\"10000\"></mp-style-type></p>","content_source_url":"","thumb_media_id":"lffoQzaBC9EaQtS0rs5Lcpk_4LbHwlIRj0g0cmp7WQTXq9yyCKKlHUt3ZrGQ6Idp","show_cover_pic":0,"url":"http://mp.weixin.qq.com/s?__biz=Mzg4ODUzOTkzNw==&mid=2247483799&idx=1&sn=9c409bd3dcd9d6753c47394d5ae97f59&chksm=cff8dfd9f88f56cf4034345f990253eebd68ca021f76fbcb7e448bead1f8c3c4519629316d5e#rd","thumb_url":"https://mmbiz.qpic.cn/mmbiz_jpg/SpEibFiaCIZFhr1IIzwUickXzhaPlg5R7mW5mTicOxZRduLjtzYRwoP1aTHACtPL00qMJuGgnMxiarCqqyuLXuhj4rg/0?wx_fmt=jpeg","need_open_comment":0,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1716874992,"update_time":1716875023},"update_time":1716875023},{"article_id":"wEP6ZnQ-KKcHU5uPpYhVi699EtiYW7gAssi3GuI36k_xjhUcuegDNG-IC65IH8Fe","content":{"news_item":[{"title":"中国企业数字化转型的三步走模型","author":"青丘之山","digest":"中国消费互联网凭借庞大的人口基数以及由此形成的消费市场,在过去的20年里一路狂奔,大幅领先于其他国家,基于所见所得的事实,就这一点而言,中国的民众具有相当的优越感。","content":"<p><br /></p><p style=\"text-align: center;\"><img class=\"rich_pages wxw-img\" data-backh=\"147\" data-backw=\"346\" data-cropselx1=\"0\" data-cropselx2=\"578\" data-cropsely1=\"0\" data-cropsely2=\"243\" data-ratio=\"0.42592592592592593\" data-s=\"300,640\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFiaiciaViasf3DkjPxrCYLgIU6BTc4A3LSibiaEcgsh9g4h4WTsOXiae6vDMkfw89akzaicIYcs7n23ndsk7g/640?wx_fmt=png\" data-type=\"png\" data-w=\"1080\" style=\"width: 360px;height: 153px;\" /></p><p style=\"margin-right: 0cm;margin-left: 0cm;font-size: 11pt;font-family: DengXian;color: rgb(0, 0, 0);letter-spacing: normal;text-wrap: wrap;background: white;\"><strong><span style=\"font-size: 13.5pt;font-family: 宋体;color: rgb(0, 213, 255);\">青爻科技,用物联网技术赋能制造业,推动产业链数字化转型。</span></strong><span lang=\"EN-US\"><o:p></o:p></span></p><hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\" /><p style=\"margin-right: 0cm;margin-left: 0cm;font-size: 11pt;font-family: DengXian;color: rgb(0, 0, 0);letter-spacing: normal;text-wrap: wrap;background: white;\"><strong><span style=\"font-size: 13.5pt;font-family: 宋体;color: rgb(0, 213, 255);\"></span></strong></p><p style=\"margin-right: 0cm;margin-left: 0cm;font-size: 11pt;font-family: DengXian;color: rgb(0, 0, 0);letter-spacing: normal;text-wrap: wrap;background: white;\"><br /></p><p style=\"text-align: left;\"><span style=\"font-size: 16px;\"><span style=\"text-indent: 37px;text-align: justify;font-family: 宋体;\">中国消</span><strong style=\"text-align: justify;text-indent: 48px;\"></strong><span style=\"text-indent: 37px;text-align: justify;font-family: 宋体;\">费互联网凭借庞大的人口基数以及由此形成的消费市场,在过去的</span><span style=\"text-indent: 37px;text-align: justify;\">20</span><span style=\"text-indent: 37px;text-align: justify;font-family: 宋体;\">年里一路狂奔,大幅领先于其他国家,基于所见所得的事实,就这一点而言,中国的民众具有相当的优越感。但另一个事实是,消费互联网目前的发展势头趋近边际失速,当下的发展空间已经接近天花板,而产业互联网的发展水平却远远落后于美国。</span></span><br /></p><p style=\"margin-top:16px;margin-bottom:16px;text-indent:37px;\"><br /></p><p style=\"text-align: center;\"><img class=\"rich_pages wxw-img\" data-ratio=\"0.9672131147540983\" data-s=\"300,640\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFgT9Fp26lTugOHkUh3shgTjU6YkJxBxAgRqX7g58FG1oLz8LTvrzFAqkFOat1PibIhoFR7ia8RcY8tQ/640?wx_fmt=png\" data-type=\"png\" data-w=\"61\" style=\"\" /></p><h1 style=\"margin-left: 0px;margin-right: 0px;margin-top: 5px;line-height: normal;text-align: left;text-indent: 0em;\"><span style=\"font-size: 20px;color: rgb(255, 255, 255);background-color: rgb(61, 167, 66);\"><strong><span style=\"background-color: rgb(61, 167, 66);color: rgb(255, 255, 255);font-family: 宋体;\">中国先进的消费互联网与相对落后的产业互联网之间有着巨大的发展落差。</span></strong></span><br /></h1><p><span style=\"font-size:21px;line-height:240%;font-family:宋体;\"><img class=\"rich_pages wxw-img\" data-cropselx1=\"0\" data-cropselx2=\"578\" data-cropsely1=\"0\" data-cropsely2=\"363\" data-ratio=\"1\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFhw3kfCV3BPyRVtjc5iahiaLlibzMJcuAoO2ub1ia6CK38OBH7HMwedcShDZP7oxaXhmORRpJicbwNiaicZA/640?wx_fmt=png&amp;from=appmsg\" data-type=\"jpeg\" data-w=\"1024\" style=\"width: 578px;height: 578px;\" /></span></p><section style=\"margin-top: 16px;margin-bottom: 16px;text-align: left;text-indent: 0em;\"><span style=\"font-size: 16px;\"><strong><span style=\"font-family: 宋体;color: rgb(75, 172, 198);\">当前中国的产业市场面临的窘境是:工业时代形成的传统生产协作模式已经大幅滞后于数字化时代的发展,并且不能适配由消费互联网的蓬勃发展而逐渐发育出的先进数字化生态,</span></strong><span style=\"font-family: 宋体;\">主要体现如下:</span></span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-align: left;text-indent: 0em;\"><span style=\"font-size: 16px;font-family: 宋体;text-indent: 37px;text-align: justify;\">一方面消费侧引领下的数字化进程已经极大改变中国社会运行状态,受益于此,全社会生产力水平得到了相当程度的提高;</span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-family: 宋体;font-size: 16px;\">另一方面,产业侧现有的基础生产关系还在沿用工业时代形成的,用于匹配分工协作的工业生产模式。</span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-size: 16px;\"><strong><span style=\"font-family: 宋体;color: rgb(75, 172, 198);\">这就产生一个矛盾:落后的生产模式难以适应先进消费模式下的社会需求。</span></strong><span style=\"font-family: 宋体;\">在这一矛盾下的企业众生相大致呈现出三张图景:</span></span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-family: 宋体;font-size: 16px;\">一是春江水暖鸭先知——起步于消费互联网的互联网原生企业早就在数字化领域如鱼得水,心剑合一,并逐步站在了数字生态链的顶端,我们称之为数字化原生企业;</span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-family: 宋体;font-size: 16px;\">二是近水楼台先得月——靠近消费侧的线下企业也较早感知到压力,经营得当并及时转型的企业,目前大致也都在信息化、数字化进程上走了一段路程,具备了基本的数字化能力,我们称之为数字化近端企业;</span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-family: 宋体;font-size: 16px;\">三是后知后觉或者尚未觉知的企业——这部分是离消费互联网较远的行业,普遍具有业务场景复杂,价值链、产业链较长等特征,我们称其为数字化远端企业。</span></section><p style=\"text-align: center;\"><img class=\"rich_pages wxw-img\" data-ratio=\"0.9833333333333333\" data-s=\"300,640\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFgT9Fp26lTugOHkUh3shgTj66WTVgrI9DpIEGmzor1BiczewUicexKztGKkvGXjp9FRJ7o18mk311hA/640?wx_fmt=png\" data-type=\"png\" data-w=\"60\" style=\"\" /></p><h1 style=\"margin-left: 0px;margin-right: 0px;margin-top: 5px;line-height: normal;text-align: left;text-indent: 0em;\"><span style=\"font-size: 20px;color: rgb(255, 255, 255);background-color: rgb(61, 167, 66);\"><strong><span style=\"background-color: rgb(61, 167, 66);color: rgb(255, 255, 255);font-family: 宋体;\">中国传统行业对未来发展趋势要有前瞻性,要破旧立新,大胆变革。</span></strong></span><br /></h1><p><span style=\"font-size:21px;line-height:240%;font-family:宋体;\"><img class=\"rich_pages wxw-img\" data-cropselx1=\"0\" data-cropselx2=\"578\" data-cropsely1=\"0\" data-cropsely2=\"325\" data-ratio=\"1\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFhw3kfCV3BPyRVtjc5iahiaLlCqpjlEqlicOVpEwjtoMlLGDs41yIAbvG69AnjTtpFPurWwpxaia6ak5Q/640?wx_fmt=png&amp;from=appmsg\" data-type=\"jpeg\" data-w=\"1024\" style=\"width: 578px;height: 578px;\" /></span></p><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-family: 宋体;font-size: 16px;\">中国产业互联网要向纵深发展,要提升全社会生产力整体水平,重点是要在传统行业,在数字化远端企业上发力。提升传统行业的数字化水平,使其满足数字生产力对于信用、敏捷、效率、创新等方面的需求。</span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-family: 宋体;font-size: 16px;\">传统行业要进行大胆的变革,敢于打破落后陈旧、效率低下的生产协作模式和商业模式,对管理制度、组织架构、组织能力进行升级迭代,提高内部组织、外部供应链的协同效率,并积极探索传统业务与数字化融合的方式方法,做好数字化转型的顶层设计和整体规划,以积极稳妥、分步实施的方式,坚定推进企业数字化转型。</span></section><p style=\"text-align: center;\"><img class=\"rich_pages wxw-img\" data-ratio=\"0.9672131147540983\" data-s=\"300,640\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFgT9Fp26lTugOHkUh3shgTjMiaUZhibnbpboqqiaWicpZUqP3IibOTzPOT19NqnJQFIic2ia0MOPFyhYCn3A/640?wx_fmt=png\" data-type=\"png\" data-w=\"61\" style=\"\" /></p><h1 style=\"margin-left: 0px;margin-right: 0px;margin-top: 5px;line-height: normal;text-align: left;text-indent: 0em;\"><span style=\"font-size: 20px;color: rgb(255, 255, 255);background-color: rgb(61, 167, 66);\"><strong><span style=\"background-color: rgb(61, 167, 66);color: rgb(255, 255, 255);font-family: 宋体;\">中国产业侧当前的信息化水平大幅落后于美、德等发达国家。</span></strong></span><br /></h1><p style=\"text-align: center;\"><img class=\"rich_pages wxw-img\" data-cropselx1=\"0\" data-cropselx2=\"578\" data-cropsely1=\"0\" data-cropsely2=\"366\" data-ratio=\"1\" data-s=\"300,640\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFhw3kfCV3BPyRVtjc5iahiaLlmjZ7W6gNzLMiaDaicbRhuagafJ3XvMR7sD8o4GZ0OpuCYRFibSxsONLdg/640?wx_fmt=png&amp;from=appmsg\" data-type=\"png\" data-w=\"1024\" style=\"width: 578px;height: 578px;\" /></p><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-size: 16px;\"><span style=\"font-family: 宋体;\">从工业革命至今,全球主流国家分别经历了</span>1.0<span style=\"font-family: 宋体;\">工业化时代,</span>2.0<span style=\"font-family: 宋体;\">信息化时代和</span>3.0<span style=\"font-family: 宋体;\">数字化时代。发达国家较早进入工业化时代并完成工业化,并且由于计算机的普及、成熟的商业环境和系统的现代企业管理文化,也较早进入信息化时代,因此普遍信息化程度较高。</span></span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-family: 宋体;font-size: 16px;\">而中国由于众所周知的原因,进入工业化时代较晚,但赶超力度大,追赶期较短,目前已经进入到后工业化时代,并逐步建立起独步全球的最大规模的全产业链体系。然而在粗放式发展的工业化进程中,大部分中国企业一切以业务为核心,以业务为导向,现代企业管理制度缺位,管理者、劳动者素质参差不齐,商业、法制环境不成熟,因此信息化在中国,尤其是企业间的普及率、完成度并不理想,导致整体信息化程度不高。</span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-family: 宋体;font-size: 16px;\">现实来看,美国、德国等发达国家工业信息化程度较高,中国的产业侧信息化程度则要远远落后于上述两个国家,相当于信息化还没建设好,又要进入数字化时代了。基于这个客观情况,虽然长期来看是实现弯道超车的重大机遇,但立足当下,要实现越级而立还需要克服非常多的挑战。</span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-size: 16px;\"><strong><span style=\"font-family: 宋体;color: rgb(75, 172, 198);\">比较乐观的是,由于消费互联网这些年在中国的蓬勃发展,使得中国社会无形中经历并接受了一次数字化现实场景的全民教育,以此为契机,消费互联网一定会反向拉动产业互联网的快速发展。</span></strong></span></section><p style=\"text-align: center;\"><img class=\"rich_pages wxw-img\" data-ratio=\"0.9508196721311475\" data-s=\"300,640\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFgT9Fp26lTugOHkUh3shgTjUvZnA0JjiajltNljiczS2o9WltJ2YYAQ9vQRYd9NEbfxhAniaFEOyMf6g/640?wx_fmt=png\" data-type=\"png\" data-w=\"61\" style=\"\"></p><h1 style=\"margin-left: 0px;margin-right: 0px;margin-top: 5px;line-height: normal;text-align: left;text-indent: 0em;\"><span style=\"font-size: 20px;color: rgb(255, 255, 255);background-color: rgb(61, 167, 66);\"><strong><span style=\"background-color: rgb(61, 167, 66);color: rgb(255, 255, 255);font-family: 宋体;\">以三步走的方式,实现企业数字化的稳妥转型。</span></strong></span><br /></h1><p style=\"text-align: center;\"><img class=\"rich_pages wxw-img\" data-ratio=\"0.43796296296296294\" data-s=\"300,640\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFgT9Fp26lTugOHkUh3shgTjNnv2NzI458fPWnI1s0Is0gCNoaOx1oNA4SPKfYr8pnib8SXhicp1iaAGw/640?wx_fmt=png\" data-type=\"png\" data-w=\"1080\" style=\"\"></p><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-size: 16px;font-family: 宋体;\">需要重视的是,所谓江山易改本性难移,数字化转型首先要改变的就是人的思维。企业管理者一定要重新审视基于工业时代的传统经营管理思维,并逐步革新、建立起面向新时代的数字化经营管理思维,<strong><span style=\"color: rgb(75, 172, 198);\">以三步走的方式,实现企业数字化的稳妥转型:</span></strong><br /></span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-size: 16px;\"><strong><span style=\"font-family: 宋体;color: rgb(75, 172, 198);\">第一步,以解决关键业务的核心痛点为抓手,首先把关键业务进行信息化部署,企业负责人和关键部门的关键岗位、关键人员适应信息化管理,并初步建立起数字化思维。</span></strong></span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-align: left;text-indent: 0em;\"><span style=\"font-size: 16px;\"><strong><span style=\"font-family: 宋体;color: rgb(75, 172, 198);\">第二步,以数字化转型为抓手,以业务为导向,进行组织变革,把企业内部各业务部门进行打通,让数据在企业内部可以无障碍流动,进而实现企业各部门、各岗位的高质、高效协作。</span></strong></span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-size: 16px;\"><strong><span style=\"font-family: 宋体;color: rgb(75, 172, 198);\">第三步,根据企业业务,将数据与市场对接,实现数据在产业链上的打通,使得数据在产业链上下游无障碍流动,并进而利用数据指导业务,辅助决策,最终建立起一个敏捷响应、精细高效的数字化企业。</span></strong></span></section><p style=\"text-align: center;\"><img class=\"rich_pages wxw-img\" data-ratio=\"0.9672131147540983\" data-s=\"300,640\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFgT9Fp26lTugOHkUh3shgTjISiadUuvibfE1Fib6AMl8iaDxRInUQzhic1IG3ibvLFiaYA98zPmzZicgaWOgQ/640?wx_fmt=png\" data-type=\"png\" data-w=\"61\" style=\"\"></p><h1 style=\"margin-left: 0px;margin-right: 0px;margin-top: 5px;line-height: normal;text-align: left;text-indent: 0em;\"><span style=\"font-size: 20px;color: rgb(255, 255, 255);background-color: rgb(61, 167, 66);\"><strong><span style=\"background-color: rgb(61, 167, 66);color: rgb(255, 255, 255);font-family: 宋体;\">数字化转型不是一个静态的目标,而是一个逐步建立,逐步迭代,不断完善的发展动态。</span></strong></span><br /></h1><p style=\"text-align: center;\"><span style=\"font-size:21px;line-height:240%;font-family:宋体;\"><img class=\"rich_pages wxw-img\" data-cropselx1=\"0\" data-cropselx2=\"550\" data-cropsely1=\"0\" data-cropsely2=\"367\" data-ratio=\"1\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFhw3kfCV3BPyRVtjc5iahiaLlOpSg0BIDxSQgCbs4QEChSo7BIzccbFvdIfPiaLuC50Irydudcz2sWkg/640?wx_fmt=png&amp;from=appmsg\" data-type=\"gif\" data-w=\"1024\" style=\"width: 550px;height: 550px;\"></span></p><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-family: 宋体;font-size: 16px;\">当然,企业完成了第三步也并不意味着就完成了整个的数字化转型,所谓的<strong><span style=\"font-family: 宋体;color: rgb(75, 172, 198);\">数字化转型不是一个静态的目标,而是一个逐步建立,逐步迭代,不断完善的发展动态。</span></strong>所以,任何企业在开启数字化转型之路前,一定要对此有着清晰的认知和心理准备,既要准备好人,也要准备好耐心,做时间的朋友。</span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-family: 宋体;font-size: 16px;\">所以,基于产业互联网的数字化建设一定是一个整体部署、分步实施、大胆探索、小心求证的过程。<strong><span style=\"font-family: 宋体;color: rgb(75, 172, 198);\">在整个数字化建设进程中,人是最大的制约因素,而不是技术,人的数字化思维与企业的数字化建设一定是一个你追我赶,螺旋上升,最终相互成就的过程。</span></strong></span></section><section style=\"margin-top: 16px;margin-bottom: 16px;text-indent: 0em;\"><span style=\"font-size: 16px;\"><strong><span style=\"font-family: 宋体;color: rgb(75, 172, 198);\">最后,也是最重要的一点,数字化是一套全新的体系,数字化思维也是一套全新的思维体系,企业管理者一定要逐步建立这样一套思维体系,并相信这套体系,坚定执行它的逻辑,最终实现它!</span></strong></span></section><p style=\"text-align: center;\"><img class=\"rich_pages wxw-img\" data-cropselx1=\"0\" data-cropselx2=\"578\" data-cropsely1=\"0\" data-cropsely2=\"385\" data-ratio=\"1\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/SpEibFiaCIZFhw3kfCV3BPyRVtjc5iahiaLlOiccOZxToPdrp0orScMLwLsR8UdKzjnVXFxibwRUibfygfJwzzMcMGQJw/640?wx_fmt=png&amp;from=appmsg\" data-type=\"jpeg\" data-w=\"1024\" style=\"width: 578px;height: 578px;\"></p><p style=\"text-align: center;\"><br /></p><p style=\"text-align: center;\"><strong>THE&nbsp; END</strong></p><p style=\"text-align: center;\"><strong><br /></strong></p><p style=\"text-align: center;\"><strong><br /></strong></p><p style=\"text-align: left;\"><strong><span style=\"color: rgb(61, 170, 214);\">青爻科技:专注于数字化赋能</span></strong><br /></p><p style=\"margin-bottom: 0.1px;max-width: 100%;min-height: 1em;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;line-height: normal;background: white;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br /></p><p style=\"text-align: center;\"><img class=\"rich_pages wxw-img\" data-cropselx1=\"0\" data-cropselx2=\"578\" data-cropsely1=\"0\" data-cropsely2=\"379\" data-ratio=\"1\" data-s=\"300,640\" data-src=\"https://mmbiz.qpic.cn/mmbiz_jpg/SpEibFiaCIZFiaiciaViasf3DkjPxrCYLgIU6BFn1lwf2RHIbx4wjn2k3B8GQph5d14CviarWtAVOx6zBeIBkApYpicS2A/640?wx_fmt=jpeg\" data-type=\"png\" data-w=\"344\" style=\"width: 578px;height: 578px;\"></p><p style=\"margin-bottom: 0.1px;max-width: 100%;min-height: 1em;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;line-height: normal;background: white;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br /></p><p style=\"margin-bottom: 0.1px;max-width: 100%;min-height: 1em;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;line-height: normal;background: white;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br /></p><p style=\"margin-bottom: 0.1px;max-width: 100%;min-height: 1em;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;line-height: normal;background: white;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br /></p><p style=\"margin-bottom: 0.1px;max-width: 100%;min-height: 1em;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;line-height: normal;background: white;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;text-decoration: underline;font-size: 12px;color: rgb(136, 136, 136);letter-spacing: 0.5px;box-sizing: border-box !important;overflow-wrap: break-word !important;\">重要声明</span></p><p style=\"margin-bottom: 0.1px;max-width: 100%;min-height: 1em;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;line-height: normal;background: white;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 12px;color: rgb(136, 136, 136);letter-spacing: 0.5px;box-sizing: border-box !important;overflow-wrap: break-word !important;\">本公众号旨在提供有关青爻科技的一般信息,而并非对任何服务或产品的推介或要约。不应将本公众号任何内容视为法规、税务、会计、投资或其他专业咨询建议。本公众号对资料的准确性、完整性或可靠性不作任何明示或暗示的陈述或保证。本公众号对发布的任何内容的变更不会另行通知,本公众号也没有义务更新已发布的任何内容。青爻科技任何管理人员、雇员或代理人均不对因使用本公众号所载任何信息而产生的任何损失或损害承担任何责任。</span></p><p style=\"margin-bottom: 0.1px;max-width: 100%;min-height: 1em;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;line-height: normal;background: white;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 12px;color: rgb(136, 136, 136);letter-spacing: 0.5px;box-sizing: border-box !important;overflow-wrap: break-word !important;\">©2024年 杭州青爻科技有限公司。版权所有。</span></p><p><br /></p><p style=\"text-align: center;\"><br /></p><p style=\"display: none;\"><mp-style-type data-value=\"10000\"></mp-style-type></p>","content_source_url":"","thumb_media_id":"lffoQzaBC9EaQtS0rs5LchcDt8D5EmKWAy-pSh2ot2X0rg8EX49d-FddZU_74mUh","show_cover_pic":0,"url":"http://mp.weixin.qq.com/s?__biz=Mzg4ODUzOTkzNw==&mid=2247483794&idx=1&sn=b465dc78a07d5eedbc299c4c76d78cf7&chksm=cff8dfdcf88f56ca140bff6bad88df17c86d7be67cbb11c42372bf133ba353bb6be6787fe240#rd","thumb_url":"https://mmbiz.qpic.cn/mmbiz_jpg/SpEibFiaCIZFhw3kfCV3BPyRVtjc5iahiaLlO4mr0IozLia4rpVavpTbiajGbd23mb8tsdjAot0picibKib3f2Emqyhic1Eg/0?wx_fmt=jpeg","need_open_comment":0,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1716777294,"update_time":1716777337},"update_time":1716777337}],"total_count":2,"item_count":2}';
  234. // $result = json_decode($str,true);
  235. // //保存文章
  236. // list($status,$msg) = $this->saveWxArticle($result);
  237. // if(! $status) return [false, $msg];dd(1);
  238. list($status, $msg) = $this->getToken();
  239. if(! $status) return [false, $msg];
  240. $config = config('qingyaoWx');
  241. $url = sprintf($config['get_article'], $msg);
  242. $offset = 0;
  243. $count = 20;
  244. $get_total = 0;
  245. do {
  246. $post = [
  247. 'offset' => $offset,
  248. 'count' => $count,
  249. 'no_content' => 0,
  250. ];
  251. $result = $this->curlOpen($url, ['post' => json_encode($post)]);
  252. $result = json_decode($result, true);
  253. Log::channel('apiLog')->info('wxget', ["message" => $result]);
  254. if (isset($result['errmsg'])) return [false, $result['errmsg']];
  255. //保存文章
  256. list($status,$msg) = $this->saveWxArticle($result);
  257. if(! $status) return [false, $msg];
  258. // 更新 offset
  259. $offset += 1;
  260. // 更新 total_count
  261. $get_total += $result['total_count'];
  262. // 检查是否还有更多数据
  263. $hasMore = isset($result['total_count']) && ($result['total_count'] > $get_total);
  264. } while ($hasMore);
  265. return [true, ''];
  266. }
  267. public function saveWxArticle($result){
  268. if(! empty($result['item'])){
  269. try {
  270. DB::beginTransaction();
  271. //保存数据
  272. $upload = $delete = [];
  273. foreach ($result['item'] as $value){
  274. $model = WxArticle::where('del_time',0)
  275. ->where('article_id', $value['article_id'])
  276. ->first();
  277. if(empty($model)){
  278. $model = new WxArticle();
  279. $model->article_id = $value['article_id'];
  280. $model->upd_time = $value['update_time'];
  281. $model->save();
  282. $id = $model->id;
  283. if(! empty($value['content']['news_item'])){
  284. foreach ($value['content']['news_item'] as $val){
  285. // 获取当前时间的微秒级时间戳
  286. list($micro, $seconds) = explode(' ', microtime());
  287. // 从微秒部分截取全部6位作为唯一标识符
  288. $microSuffix = substr($micro, 2, 6);
  289. $content_name = date('YmdHis', $seconds) . $microSuffix;
  290. list($content_img,$name) = $this->saveContent($val['content'], $content_name);
  291. list($status, $my_thumb_url) = $this->get_helper_for_img($val['thumb_url']);
  292. $modelDetail = new WxArticleDetail();
  293. $modelDetail->wx_article_id = $id;
  294. $modelDetail->title = $val['title'];
  295. $modelDetail->author = $val['author'];
  296. $modelDetail->digest = $val['digest'];
  297. $modelDetail->content_name = $name;
  298. $modelDetail->content_source_url = $val['content_source_url'];
  299. $modelDetail->thumb_media_id = $val['thumb_media_id'];
  300. $modelDetail->show_cover_pic = $val['show_cover_pic'];
  301. $modelDetail->url = $val['url'];
  302. $modelDetail->thumb_url = $val['thumb_url'];
  303. $modelDetail->my_thumb_url = $my_thumb_url;
  304. $modelDetail->need_open_comment = $val['need_open_comment'];
  305. $modelDetail->only_fans_can_comment = $val['only_fans_can_comment'];
  306. $modelDetail->is_deleted = $val['is_deleted'];
  307. $modelDetail->upd_time = $value['content']['update_time'];
  308. $modelDetail->crt_time = $value['content']['create_time'];
  309. $modelDetail->save();
  310. if(! empty($content_img)){
  311. $insert = [];
  312. foreach ($content_img as $value){
  313. $upload[] = $value;
  314. $insert[] = [
  315. 'wx_article_detail_id' => $modelDetail->id,
  316. 'url' => $value
  317. ];
  318. }
  319. WxArticleDetailContent::insert($insert);
  320. }
  321. if(! empty($name)) $upload[] = $name;
  322. if(! empty($my_thumb_url)) $upload[] = $my_thumb_url;
  323. }
  324. }
  325. }else{
  326. if($model->upd_time != $value['update_time']){
  327. $model->upd_time = $value['update_time'];
  328. $model->save();
  329. $id = $model->id;
  330. $detail = WxArticleDetail::where('del_time',0)
  331. ->where('wx_article_id',$id)
  332. ->select('content_name as txt','thumb_url as img','id')
  333. ->get()->toArray();
  334. WxArticleDetail::where('del_time',0)
  335. ->where('wx_article_id',$id)
  336. ->update(['del_time' => time()]);
  337. $detail2 = WxArticleDetailContent::where('del_time',0)
  338. ->whereIn('id', array_column($detail,'id'))
  339. ->select('url as img')
  340. ->get()->toArray();
  341. WxArticleDetailContent::where('del_time',0)
  342. ->whereIn('id', array_column($detail,'id'))
  343. ->update(['del_time' => time()]);
  344. if(! empty($value['content']['news_item'])){
  345. foreach ($value['content']['news_item'] as $val){
  346. // 获取当前时间的微秒级时间戳
  347. list($micro, $seconds) = explode(' ', microtime());
  348. // 从微秒部分截取全部6位作为唯一标识符
  349. $microSuffix = substr($micro, 2, 6);
  350. $content_name = date('YmdHis', $seconds) . $microSuffix;
  351. list($content_img,$name) = $this->saveContent($val['content'], $content_name);
  352. list($status, $my_thumb_url) = $this->get_helper_for_img($val['thumb_url']);
  353. $modelDetail = new WxArticleDetail();
  354. $modelDetail->wx_article_id = $id;
  355. $modelDetail->title = $val['title'];
  356. $modelDetail->author = $val['author'];
  357. $modelDetail->digest = $val['digest'];
  358. $modelDetail->content_name = $name;
  359. $modelDetail->content_source_url = $val['content_source_url'];
  360. $modelDetail->thumb_media_id = $val['thumb_media_id'];
  361. $modelDetail->show_cover_pic = $val['show_cover_pic'];
  362. $modelDetail->url = $val['url'];
  363. $modelDetail->thumb_url = $val['thumb_url'];
  364. $modelDetail->my_thumb_url = $my_thumb_url;
  365. $modelDetail->need_open_comment = $val['need_open_comment'];
  366. $modelDetail->only_fans_can_comment = $val['only_fans_can_comment'];
  367. $modelDetail->is_deleted = $val['is_deleted'];
  368. $modelDetail->upd_time = $value['content']['update_time'];
  369. $modelDetail->crt_time = $value['content']['create_time'];
  370. $modelDetail->save();
  371. if(! empty($content_img)){
  372. $insert = [];
  373. foreach ($content_img as $value){
  374. $upload[] = $value;
  375. $insert[] = [
  376. 'wx_article_detail_id' => $modelDetail->id,
  377. 'url' => $value
  378. ];
  379. }
  380. WxArticleDetailContent::insert($insert);
  381. }
  382. if(! empty($name)) $upload[] = $name;
  383. if(! empty($my_thumb_url)) $upload[] = $my_thumb_url;
  384. }
  385. }
  386. foreach ($detail as $value){
  387. if(! empty($value['txt'])) $delete[] = $value['txt'];
  388. if(! empty($value['img'])) $delete[] = $value['img'];
  389. }
  390. foreach ($detail2 as $value){
  391. if(! empty($value['img'])) $delete[] = $value['img'];
  392. }
  393. }
  394. }
  395. }
  396. //上传阿里云
  397. $service = new FileUploadService();
  398. $service->createOssUploadWx($upload);
  399. $service->createOssDeleteWx($delete);
  400. DB::commit();
  401. return [true, ''];
  402. }catch (\Throwable $exception){
  403. DB::rollBack();
  404. return [false, $exception->getMessage() . '|' . $exception->getLine() . '|' . $exception->getFile()];
  405. }
  406. }
  407. return [false, '暂无数据'];
  408. }
  409. //生成临时文件
  410. public function saveContent($content, $name)
  411. {
  412. // 定义本地文件路径
  413. $name = $name . '.txt';
  414. $localFilePath = storage_path(self::wx_img . $name);
  415. // 写入文件前先检查文件是否存在
  416. if (! file_exists($localFilePath)) {
  417. // 检查目录是否存在,如果不存在则创建
  418. $directoryPath = dirname($localFilePath);
  419. if (!is_dir($directoryPath)) {
  420. // 设置目录权限,可以根据需要更改
  421. $mode = 0777;
  422. // 使用递归选项创建目录
  423. if (!mkdir($directoryPath, $mode, true)) {
  424. return [false, '目录创建失败'];
  425. }
  426. }
  427. list($content, $img) = $this->dealContent($content);
  428. file_put_contents($localFilePath, $content);
  429. }
  430. return [$img ?? [], $name];
  431. }
  432. public function dealContent1($content){
  433. // 正则表达式匹配 data-src 属性
  434. $pattern = '/data-src="([^"]+)"/';
  435. // 替换 data-src 为 src
  436. $replacedString = preg_replace($pattern, 'src="$1"', $content);
  437. return [$replacedString, []];
  438. }
  439. public function dealContent($content){
  440. // 正则表达式匹配 data-src 属性
  441. $pattern = '/data-src="([^"]+)"/';
  442. // 匹配所有 data-src 属性
  443. preg_match_all($pattern, $content, $matches);
  444. // 提取所有匹配到的 URL
  445. $urls = $matches[1];
  446. $return = [];
  447. $header = ['Content-Type:application/json'];
  448. // 遍历每个匹配项并替换
  449. foreach ($urls as $url) {
  450. list($status, $msg) = $this->get_helper_for_img($url,$header);
  451. if($status){
  452. $newImageUrl = $msg;
  453. // 构建完整的 data-src 属性
  454. $oldDataSrc = 'data-src="' . $url . '"';
  455. $newDataSrc = 'src="' . $newImageUrl . '"';
  456. // 替换
  457. $content = str_replace($oldDataSrc, $newDataSrc, $content);
  458. $return[] = $msg;
  459. }
  460. }
  461. return [$content,$return];
  462. }
  463. public function delFile($detail){
  464. if(empty($detail)) return;
  465. $dir = Self::dir;
  466. foreach ($detail as $value){
  467. if(isset($value['txt'])){
  468. $dir_content = $dir . $value['txt'] . '.txt';
  469. if(Storage::disk('public')->exists($dir_content)) Storage::disk('public')->delete($dir_content);
  470. }
  471. if(! empty($value['img'])){
  472. $dir_thumb = $dir . md5($value['img']) . '.jpg';
  473. if(Storage::disk('public')->exists($dir_thumb)) Storage::disk('public')->delete($dir_thumb);
  474. }
  475. }
  476. }
  477. public function getArticleList($data){
  478. // list($status, $msg) = $this->rule($data);
  479. // if(! $status) {
  480. // file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
  481. // return [false, 'IP未入白名单'];
  482. // }
  483. $model = WxArticleDetail::where('del_time',0)
  484. ->where('is_deleted', 0)
  485. ->select('title','author','digest','thumb_url','id','crt_time','my_thumb_url')
  486. ->orderBy('crt_time','desc');
  487. $list = $this->limit($model,'',$data);
  488. //组织数据
  489. $list = $this->organizationData($list);
  490. return [true, $list];
  491. }
  492. public function organizationData($data){
  493. if(empty($data['data'])) return $data;
  494. $service = new FileUploadService();
  495. foreach ($data['data'] as $key => $value){
  496. $data['data'][$key]['crt_time'] = $value['crt_time'] ? date("Y-m-d H:i", $value['crt_time']) : "";
  497. $data['data'][$key]['my_thumb_url'] = $service->getFileShowWx($value['my_thumb_url']);
  498. }
  499. return $data;
  500. }
  501. public function getArticleContent($data){
  502. // list($status, $msg) = $this->rule($data);
  503. // if(! $status) {
  504. // file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
  505. // return [false, 'IP未入白名单'];
  506. // }
  507. if(empty($data['id'])) return [false, 'ID不能为空'];
  508. $detail = WxArticleDetail::where('id',$data['id'])->first();
  509. if(empty($detail)) return [false, '文章不存在或已被删除'];
  510. $detail = $detail->toArray();
  511. if($detail['is_deleted']) return [false, '文章不存在或被删除'];
  512. if(empty($detail['content_name'])) return [true, ['content' => '']];
  513. //获取文件
  514. $service = new FileUploadService();
  515. $content = $service->getFileShowWx($detail['content_name']);
  516. // 读取文件内容
  517. $fileContent = file_get_contents($content);
  518. $fileContent = $this->dealContent2($fileContent);
  519. $detail['content'] = $fileContent;
  520. return [true, ['data' => $detail]];
  521. }
  522. public function dealContent2($content){
  523. // 正则表达式匹配 data-src 属性
  524. $pattern = '/src="([^"]+)"/';
  525. // 匹配所有 data-src 属性
  526. preg_match_all($pattern, $content, $matches);
  527. // 提取所有匹配到的 URL
  528. $urls = $matches[1];
  529. // 遍历每个匹配项并替换
  530. $service = new FileUploadService();
  531. foreach ($urls as $url) {
  532. $newImageUrl = $service->getFileShowWx($url);
  533. $oldDataSrc = 'src="' . $url . '"';
  534. $newDataSrc = 'src="' . $newImageUrl . '"';
  535. // 替换
  536. $content = str_replace($oldDataSrc, $newDataSrc, $content);
  537. }
  538. return $content;
  539. }
  540. }