|
@@ -159,6 +159,25 @@ class RefundOrder extends BaseController
|
|
159
|
"source_type" => 3
|
159
|
"source_type" => 3
|
|
160
|
];
|
160
|
];
|
|
161
|
Db::name("user_sign_score")->insert($data);//添加积分记录
|
161
|
Db::name("user_sign_score")->insert($data);//添加积分记录
|
|
|
|
162
|
+ } else if ($array_fzone_paytype['type'] == 'b4') {
|
|
|
|
163
|
+ // {"checked":true,"note":"现金+积分","other":1.5,"price":8.5,"total":0.0,"type":"b2","vr":"48799.82"}
|
|
|
|
164
|
+
|
|
|
|
165
|
+ $jingdoupri = Db::name("user")->where("uid", $group_order_map['uid'])->value('jingdou');
|
|
|
|
166
|
+ $jingdoupri += $array_fzone_paytype['other'];
|
|
|
|
167
|
+ Db::name("user")->where("uid", $group_order_map['uid'])->update(['jingdou' => $jingdoupri]);
|
|
|
|
168
|
+
|
|
|
|
169
|
+ Db::name('user_sign_jingdou')->insert([
|
|
|
|
170
|
+ 'uid' => $store_order_info['uid'],
|
|
|
|
171
|
+ 'number' => $array_fzone_paytype['other'],
|
|
|
|
172
|
+ 'status' => 1,
|
|
|
|
173
|
+ 'mark' => '购买商品消费京豆',
|
|
|
|
174
|
+ 'addtime' => time(),
|
|
|
|
175
|
+ 'surplus' => $jingdoupri,
|
|
|
|
176
|
+ 'settlement_time' => date('Y-m-d H:i:s'),
|
|
|
|
177
|
+ 'type' => 1,
|
|
|
|
178
|
+ 'order_type' => 0,
|
|
|
|
179
|
+ 'order_id' => $store_order_info['order_id']
|
|
|
|
180
|
+ ]);
|
|
162
|
} else if ($array_fzone_paytype['type'] == 'a3') {
|
181
|
} else if ($array_fzone_paytype['type'] == 'a3') {
|
|
163
|
// {"checked":true,"note":"现金+VR","other":1.5,"price":8.5,"total":0.0,"type":"a3","vr":"48799.82"}
|
182
|
// {"checked":true,"note":"现金+VR","other":1.5,"price":8.5,"total":0.0,"type":"a3","vr":"48799.82"}
|
|
164
|
$vrpri = Db::name("user")->where("uid", $group_order_map['uid'])->value('vr');
|
183
|
$vrpri = Db::name("user")->where("uid", $group_order_map['uid'])->value('vr');
|