150
+        user.freeze_balance += freeze_amount
146 151
     user.save()
147 152
 
148 153
     ymd = tc.local_string(format='%Y%m%d')
@@ -162,8 +167,10 @@ def order_paid_success(order):
162 167
         user_id=to_uid,
163 168
         photo_id=order.photo_id,
164 169
         type=UserIncomeExpensesInfo.INCOME,
165
-        amount=total_fee,
170
+        amount=amount,
166 171
         balance=user.balance,
172
+        freeze_amount=freeze_amount,
173
+        freeze_balance=user.freeze_balance,
167 174
         remark=u'图片购买',
168 175
     )
169 176
 

kodo - Gogs: Go Git Service

Nenhuma Descrição

.gitignore 735B

    # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *.swp # C extensions *.so # Distribution / packaging bin/ build/ develop-eggs/ dist/ eggs/ lib/ lib64/ parts/ sdist/ venv/ var/ static/upload/ *.egg-info/ .installed.cfg *.egg *.sublime* # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports .tox/ .coverage .cache nosetests.xml coverage.xml # Translations # *.mo # Mr Developer .mr.developer.cfg .project .pydevproject .settings # Rope .ropeproject # Django stuff: *.log *.pot # Sphinx documentation docs/_build/ # Ignore For zhTimer .DS_Store db.sqlite3 local_settings.py .idea/ media/ collect_static/ # Special File *download.html # Qiniu .qiniu_pythonsdk_hostscache.json