Skip to content

Commit

Permalink
fixed sina api from http to https
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackliu007888 committed May 9, 2018
1 parent c68ebf3 commit f312d8a
Show file tree
Hide file tree
Showing 5 changed files with 8,683 additions and 755 deletions.
4 changes: 2 additions & 2 deletions app/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "__MSG_appName__",
"version": "1.5.0",
"version": "1.5.2",
"manifest_version": 2,
"update_url": "http://www.example.com/update.xml",
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
Expand All @@ -19,7 +19,7 @@
},
"permissions": [
"notifications",
"http://hq.sinajs.cn/list=*",
"https://hq.sinajs.cn/list=*",
"http://suggest3.sinajs.cn/suggest/",
"http://vip.stock.finance.sina.com.cn/quotes_service/view/"
],
Expand Down
2 changes: 1 addition & 1 deletion app/scripts.babel/popup/api/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';

const url = 'http://hq.sinajs.cn/'
const url = 'https://hq.sinajs.cn/'

export function getStockByCode(code) {
return axios.get(`${url}list=${code}`).then(res => {
Expand Down
21 changes: 11 additions & 10 deletions app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 103);
/******/ return __webpack_require__(__webpack_require__.s = 104);
/******/ })
/************************************************************************/
/******/ ([
Expand Down Expand Up @@ -376,8 +376,7 @@ module.exports = {
/***/ }),
/* 1 */,
/* 2 */,
/* 3 */,
/* 4 */
/* 3 */
/***/ (function(module, exports) {

// shim for using process in browser
Expand Down Expand Up @@ -567,6 +566,7 @@ process.umask = function() { return 0; };


/***/ }),
/* 4 */,
/* 5 */,
/* 6 */,
/* 7 */
Expand Down Expand Up @@ -666,7 +666,7 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {

module.exports = defaults;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)))
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))

/***/ }),
/* 8 */,
Expand Down Expand Up @@ -880,7 +880,7 @@ module.exports = function xhrAdapter(config) {
});
};

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)))
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))

/***/ }),
/* 18 */
Expand Down Expand Up @@ -948,7 +948,8 @@ module.exports = Cancel;
/***/ }),
/* 21 */,
/* 22 */,
/* 23 */
/* 23 */,
/* 24 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand Down Expand Up @@ -1023,7 +1024,6 @@ function getFixedNum(num) {
}

/***/ }),
/* 24 */,
/* 25 */,
/* 26 */,
/* 27 */,
Expand Down Expand Up @@ -1051,7 +1051,7 @@ var _axios2 = _interopRequireDefault(_axios);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var url = 'http://hq.sinajs.cn/';
var url = 'https://hq.sinajs.cn/';

function getStockByCode(code) {
return _axios2.default.get(url + 'list=' + code).then(function (res) {
Expand Down Expand Up @@ -1990,7 +1990,7 @@ exports.getAnnouncementDetail = getAnnouncementDetail;
exports.getStockDetail = getStockDetail;
exports.getSuggestList = getSuggestList;

var _base = __webpack_require__(23);
var _base = __webpack_require__(24);

function getStockTradeDetail(res) {
// console.log(res)
Expand Down Expand Up @@ -2169,7 +2169,8 @@ function getSuggestList(res) {
/* 100 */,
/* 101 */,
/* 102 */,
/* 103 */
/* 103 */,
/* 104 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/chromereload.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 104);
/******/ return __webpack_require__(__webpack_require__.s = 105);
/******/ })
/************************************************************************/
/******/ ({

/***/ 104:
/***/ 105:
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand Down
Loading

0 comments on commit f312d8a

Please sign in to comment.