Authored by 于良

检查版本号增加pid字段 review by 草莓

... ... @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0.0</string>
<string>6.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2.0.0.2017080801</string>
<string>6.0.0.2017080801</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
... ...
... ... @@ -75,8 +75,10 @@ export function userItemsPressed(item) {
export function checkUpdate() {
return (dispatch) => {
return new UserService().checkUpdate()
return (dispatch, getState) => {
let {user} = getState();
let pid = user.profile.pid;
return new UserService().checkUpdate(pid)
.then((json) => {
dispatch(checkUpdateSuccess(json))
})
... ...
... ... @@ -74,7 +74,6 @@ export default class UserService {
url: '',
body: {
method: 'app.shops.checkAppVersion',
debug: 'XYZ',
pid,
}
})
... ...